This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| go build for linux: | |
| env GOOS=linux go build -o /tmp/server server.go | |
| run with docker: | |
| docker run -it --rm --name test -v /tmp/server:/server -p 3000:80 -p 3001:6060 alpine /server | |
| run pprof debugger: | |
| go get github.com/google/pprof | |
| pprof --seconds 30 -http=:4444 /tmp/server http://localhost:3001/debug/pprof/profile |
OlderNewer