Documentation
¶
Index ¶
- Variables
- func DetectPackage(path string) string
- func ExtractParameters(function reflect.Type) def.Vars
- func ExtractReturns(function reflect.Type) def.Types
- func FieldsOf(structt interface{}) def.Vars
- func FilterByKind(kind reflect.Kind, types ...reflect.Type) []reflect.Type
- func FilterByName(name string, types ...reflect.Type) []reflect.Type
- func FirstOf(kind reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)
- func FirstOfKinds(kinds []reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)
- func Imports(input []byte) (string, def.Vars)
- func JoinKinds(kinds ...[]reflect.Kind) []reflect.Kind
- func LastOf(kind reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)
- func LastOfKinds(kinds []reflect.Kind, unptr bool, types ...reflect.Type) (reflect.Type, int)
- func MethodsOf(structt interface{}) []def.Method
- func OneOfKinds(typ reflect.Type, unptr bool, kind ...reflect.Kind) bool
- func ParseImport(imports matcho.Matcho) (def.Var, matcho.Matcho)
- func SelectError(types ...reflect.Type) (reflect.Type, int)
- func WalkStructFields(structt interface{}, v func(f reflect.StructField))
Constants ¶
This section is empty.
Variables ¶
View Source
var KindContainer = []reflect.Kind{reflect.Map, reflect.Struct, reflect.Slice, reflect.Array}
View Source
var KindData = JoinKinds(KindContainer, KindFloating, KindInteger, []reflect.Kind{reflect.Bool, reflect.String})
Functions ¶
func DetectPackage ¶
func FirstOfKinds ¶
func LastOfKinds ¶
func WalkStructFields ¶
func WalkStructFields(structt interface{}, v func(f reflect.StructField))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.