Inspectopedia Help

Unused function

Reports unused unexported functions.

In Go, a function is unexported if it begins with a small letter. Names of unexported functions that were defined but never used are grayed out.

// Unused unexported function func unExportedUnusedFunc() { } func main() { fmt.Println("Hello") }

Inspection Details

Available in:

GoLand 2023.3

Plugin:

Go, 233.SNAPSHOT

Last modified: 13 July 2023