gin-gonic-demo/
|- mian.go
|- handlers
|- hello.go
|- login.go
|- router
|- router.go
|- .gitignore
|- readme.md
|- go.mod
每次調整都需要init一次
swag init
go run main.go
curl -fLo ~/.air \
https://raw.githubusercontent.com/cosmtrek/air/master/bin/darwin/air
chmod +x ~/.air
curl -fLo ~/.air \
https://raw.githubusercontent.com/cosmtrek/air/master/bin/linux/air
chmod +x ~/.air
curl -fLo ~/.air.exe \
https://raw.githubusercontent.com/cosmtrek/air/master/bin/windows/air.exe
./air