Registry / utility / alecthomas-gocyclo

alecthomas-gocyclo

JSON →
library0.0.0-20150208221726-aa8f8b160214gogounverified

This package calculates the cyclomatic complexity of functions and methods in Go source code.

go get github.com/alecthomas/gocyclo
INSTALL
IMPORT
SIG · ALECTHOMAS-GOCYCLO
A
alecthomas-gocyclo
utilitygov0.0.0-20150208221726-aa8f8b160214
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gocyclo
github.com/alecthomas/gocyclo

Analyzes cyclomatic complexity of functions in a Go file.

package main import ( "fmt" "github.com/alecthomas/gocyclo" ) func main() { // Example: analyze a Go file stats, err := gocyclo.Analyze([]string{"main.go"}) if err != nil { panic(err) } for _, s := range stats { fmt.Printf("Complexity: %d, Function: %s\n", s.Complexity, s.FuncName) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150208221726-aa8f8b160214latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
Meta
1
OpenAI (training)
1
Resources
alecthomas-gocyclo — go get alecthomas-gocyclo · libregistry