【文件属性】:
文件名称:simple-go-httpserver:Simple HTTP server by golang 用golang写的简易http服务器
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-09 08:39:42
Go
基于golang编写的简易HTTP服务器
用法
1. 下载项目到本地
git clone https://github.com/tignioj/simple-go-httpserver.git
2. 编译
go build
3. 运行
(1)双击运行
双击运行默认端口为8080
打开
(2)命令行运行
指定监听端口9999
./gohttpserver.exe -p 9999
打开
【文件预览】:
simple-go-httpserver-main
----go.mod(40B)
----index.html(287B)
----main.go(2KB)
----README.md(394B)
----css()
--------index.css(366B)
----.gitignore(22B)
----index.js(281B)