answer/README.md

711 B

answer

问答社区主项目代码

Dependence

github.com/segmentfault/pacman

module

  • email github.com/jordan-wright/email
  • session github.com/gin-contrib/sessions
  • Captcha github.com/mojocn/base64Captcha

Run

cd cmd
export GOPRIVATE=git.backyard.segmentfault.com
go mod tidy
./dev.sh

pprof

 # Installation dependency
 go get -u github.com/google/pprof
 brew install graphviz
pprof -http :8082 http://XXX/debug/pprof/profile\?seconds\=10