inspect

package
v0.0.0-...-3f0b436 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DetectPackage

func DetectPackage(path string) string

func ExtractParameters

func ExtractParameters(function reflect.Type) def.Vars

Pass func

func ExtractReturns

func ExtractReturns(function reflect.Type) def.Types

Pass func

func FieldsOf

func FieldsOf(structt interface{}) def.Vars

prototype or reflect.Type

func FilterByKind

func FilterByKind(kind reflect.Kind, types ...reflect.Type) []reflect.Type

func FilterByName

func FilterByName(name string, types ...reflect.Type) []reflect.Type

func FirstOf

func FirstOf(kind reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)

func FirstOfKinds

func FirstOfKinds(kinds []reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)

func Imports

func Imports(input []byte) (string, def.Vars)

func JoinKinds

func JoinKinds(kinds ...[]reflect.Kind) []reflect.Kind

func LastOf

func LastOf(kind reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)

func LastOfKinds

func LastOfKinds(kinds []reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)

func MethodsOf

func MethodsOf(structt interface{}) []def.Method

prototype or reflect.Type

func OneOfKinds

func OneOfKinds(typ reflect.Type, unptr bool, kind ...reflect.Kind) bool

func ParseImport

func ParseImport(imports matcho.Matcho) (def.Var, matcho.Matcho)

func SelectError

func SelectError(types ...reflect.Type) (reflect.Type, int)

func WalkStructFields

func WalkStructFields(structt interface{}, v func(f reflect.StructField))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL