go-cmp: github.com/google/go-cmp/cmp/internal/function Index | Files

package function

import "github.com/google/go-cmp/cmp/internal/function"

Package function provides functionality for identifying function types.

Index

Package Files

func.go

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
    ValuePredicate    = tbFunc  // func(T) bool
    KeyValuePredicate = trbFunc // func(T, R) bool
)

func IsType Uses

func IsType(t reflect.Type, ft funcType) bool

IsType reports whether the reflect.Type is of the specified function type.

func NameOf Uses

func NameOf(v reflect.Value) string

NameOf returns the name of the function value.

Package function imports 4 packages (graph) and is imported by 2 packages. Updated 2020-09-24. Refresh now. Tools for package owners.