1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
构建服务
➜ gin ls
Makefile app.go
➜ gin make all
go build -o httpserver
echo "test over."
test over.
echo "deploy over."
deploy over.
echo "clean over."
clean over.
➜ gin ls
Makefile app.go httpserver
➜ gin ./httpserver &
[1] 6450
➜ gin [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /ping --> main.startGinApp.func1 (3 handlers)
[GIN-debug] GET / --> main.startGinApp.func2 (3 handlers)
[GIN-debug] Listening and serving HTTP on :8080