gocc is analysis tool to check cyclomatic complexity of go codes. this package provides Analyzer for analysis. you can use this analyzer in your analysis tool.
$ go get -u github.com/knsh14/gocc/cmd/gocc
$ gocc [-flag] [package]
$ gocc -over 10 ./src