package function
import "github.com/google/go-cmp/cmp/internal/function"
Package function provides functionality for identifying function types.
Index ¶
Constants ¶
const ( Equal = ttbFunc // func(T, T) bool EqualAssignable = tibFunc // func(T, I) bool; encapsulates func(T, T) bool Transformer = trFunc // func(T) R ValueFilter = ttbFunc // func(T, T) bool Less = ttbFunc // func(T, T) bool Compare = ttiFunc // func(T, T) int ValuePredicate = tbFunc // func(T) bool KeyValuePredicate = trbFunc // func(T, R) bool )
Functions ¶
func IsType ¶
IsType reports whether the reflect.Type is of the specified function type.
func NameOf ¶
NameOf returns the name of the function value.
Source Files ¶
- Version
- v0.7.0 (latest)
- Published
- Jan 14, 2025
- Platform
- windows/amd64
- Imports
- 4 packages
- Last checked
- 23 minutes ago –
Tools for package owners.