Skip to content

bingoohuang/gostarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gostarter

a starter project for golang

features

  • 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 界面查看

build

  1. make install for local
  2. make linux for linux version

About

build a starter project for golang, including log, config, ctl, and etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published