Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Verbose bool
Verbose can be set to true for output to stdout while processing source files
Functions ¶
func PureFunctions ¶
PureFunctions returns a slice with the function names that are considered pure
Example ¶
filename := "test/main.go" pureFunctions, err := PureFunctions(filename) if err != nil { log.Fatalln(err) } fmt.Printf("Pure functions in %s:\n", filename) sort.Strings(pureFunctions) for _, name := range pureFunctions { fmt.Println(name) }
Output: Pure functions in test/main.go: add add2 mul mul3
func SetVerbose ¶
func SetVerbose(verbose bool)
SetVerbose can be used for enabling or disabling verbose output to stdout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.