https://github.com/bitepeng/b0httpd
B0Httpd:基于Go语言开发的超级简便(无任何依赖,一个文件,快速开启)的自建文件服务器
https://github.com/bitepeng/b0httpd
easy-to-use golang http-server tcp-server
Last synced: 5 months ago
JSON representation
B0Httpd:基于Go语言开发的超级简便(无任何依赖,一个文件,快速开启)的自建文件服务器
- Host: GitHub
- URL: https://github.com/bitepeng/b0httpd
- Owner: bitepeng
- License: apache-2.0
- Created: 2021-12-10T07:52:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-19T07:13:02.000Z (over 4 years ago)
- Last Synced: 2025-03-25T21:11:14.085Z (about 1 year ago)
- Topics: easy-to-use, golang, http-server, tcp-server
- Language: Go
- Homepage:
- Size: 12 MB
- Stars: 27
- Watchers: 2
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyHttpd
- EasyHttpd 超级简便的自建Http服务器
- 基于Go语言,极少依赖,一个文件,快速开启
## 下载快速开始
- 从bin目录下载对应操作系统的可执行文件
- windows平台,easyhttpd.exe 双击执行
## 命令行参数
```
easyhttpd.exe -r ./ -p :8888
```
- 服务根文件目录
- `-r 根路径`
- 服务端口(可指定IP)
- `-p 0.0.0.0:8888`
- `-p :8888`
## 使用Go语言功能点
- [x] net/http server
- [x] go embed fs
- [x] http template
- [x] http file upload
- [x] run cmd open
- [x] file read and write
- [x] host ip address
- [x] multi platform cross compilation