Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
realdengziqi committed Sep 5, 2022
1 parent e78dd2a commit e505c78
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,32 @@
go build
```
## 使用
编译后
编译后在项目目录下会出现一个可执行文件`simpleHttpPostServer`
- 可以使用--help查看参数设置
```go
./simpleHttpPostServer --help
// 输出
//flag needs an argument: -h
//Usage of ./simpleHttpPostServer:
// -h string
// host (default "0.0.0.0")
// -p string
// 端口 (default "8080")
```
你可以自己指定要绑定的host和port。

指定host用-h传参(默认0.0.0.0),指定port用-p传参(默认8080)。

比如
```go
./simpleHttpPostServer -h 0.0.0.0 -p 8000
```
或者
```go
./simpleHttpPostServer -p 8000
```
也可以什么都不传,直接使用默认的0.0.0.0:8000
```go
./simpleHttpPostServer
```

0 comments on commit e505c78

Please sign in to comment.