测试
make脚手架
➜ demo git:(master) ✗ make help
dep Get the dependencies
lint Lint Golang files
vet Run go vet
test Run unittests
test-coverage Run tests with coverage
build Local build
linux Linux build
run Run Server
clean Remove previous build
help Display this help screen
- 使用go mod下载项目依赖
$ make dep
- 添加配置文件(默认读取位置: etc/demo.toml)
$ 编辑样例配置文件 etc/demo.toml.example
$ mv etc/demo.toml.example etc/demo.toml
- 启动服务
$ make run