https://git-on-web.herokuapp.com/
-
Install air
https://github.com/cosmtrek/air
go get -u github.com/cosmtrek/air
-
Run
air -d
-
Run the below command to run all the test
go test ./...
-
Run the below command
go test -bench=. -benchmem
-
Setup pprof routes
https://github.com/gin-contrib/pprof
-
Ensure you have Graphviz and dot installed, these are dependencies required by pprof
go tool pprof -http=localhost:8888 http://localhost:9090/debug/pprof/heap