Given a valid Go code in
gocode.txt file find top-3 used functions. Don’t count function declaration. This is a static analysis: the question is not how often each function is actually executed at runtime, but how often it is used by the programmer.
FunctionFrequency(gocode byte) string
Run tests with benchmarks
go test -bench .