a starter project for golang
-
controllers 示例
-
登录授权示例
-
yaml 配置文件使用示例
-
db 使用示例
-
golog 使用示例
-
gin 框架使用
-
pprof cpu 支持
echo 5m > jj.cpu; kill -USR1 {pid}
5分钟后,获取 cpu.profile 文件go tool pprof -http :9402 cpu.profile
本机打开 web 界面查看
-
pprof mem 支持
touch jj.mem; kill -USR1 ; kill -USR1 {pid}
立即获取 mem.profile 文件go tool pprof -http :9402 mem.profile
本机打开 web 界面查看
make install
for localmake linux
for linux version