Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
functionfrequency.go
functionfrequency_test.go
gocode0.txt
gocode1.txt
gocode2.txt
gocode3.txt

README.md

Function Frequency

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.

Function format: FunctionFrequency(gocode []byte) []string

Run tests with benchmarks

go test -bench .