go run main.go
Note: all endpoints are on port 8080
eg
curl http://localhost:8080/myLovelyFunction1
curl http://localhost:8080/debug/pprof/heap > "heap-$(date +%T).out"
go tool pprof -http=:8802 -diff_base <path to base heap file> <path to the heap file you wish to compare>