Golang's entry project integrates common components and functions such as gin, swagger, JWT, vaper, zap, redis, etc.
# install golang mod
go list
go mod tidy
$GOPATH/bin/swag init
And then access url: http://localhost:8080/api-docs/swagger/index.html