package functions
import "honnef.co/go/tools/functions"
Index ¶
Functions ¶
func IsStub ¶
IsStub reports whether a function is a stub. A function is considered a stub if it has no instructions or if all it does is return a constant value.
func Terminates ¶
Terminates reports whether fn is supposed to return, that is if it has at least one theoretic path that returns from the function. Explicit panics do not count as terminating.
Types ¶
type Loop ¶
func FindLoops ¶
Source Files ¶
loops.go stub.go terminates.go
- Version
- v0.0.1-2020.1.3
- Published
- Feb 22, 2020
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 50 seconds ago –
Tools for package owners.