Documentation ¶
Index ¶
- func AllConcrete() map[string]reflect.Type
- func AllFields(kind string) ([]reflect.StructField, error)
- func AllImplementers(kind string) (map[string]reflect.Type, error)
- func AllInterface() map[string]reflect.Type
- func AllKinds() map[string]reflect.Type
- func DoesImplement(concrete, ifc string) (bool, error)
- func HasFieldKind(parentKind, fieldKind, fieldName string) (bool, reflect.StructField, error)
- func IsConcrete(kind string) (bool, reflect.Type, error)
- func IsInterface(kind string) (bool, reflect.Type, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllConcrete ¶
AllConcrete returns all known concrete types, keyed by their `kind`
func AllFields ¶
func AllFields(kind string) ([]reflect.StructField, error)
AllFields returns all fields in `kind`, this will return an error of `kind` is not a known concrete type
func AllImplementers ¶
AllImplementers finds all known types that implement `kind`, this will return an error if `kind` is not an interface type
func AllInterface ¶
AllInterface returns all known interface types, keyed by their `kind`
func DoesImplement ¶
DoesImplement returns true if the `concrete` kind implements the `ifc` kind
func HasFieldKind ¶
func HasFieldKind(parentKind, fieldKind, fieldName string) (bool, reflect.StructField, error)
HasFieldKind returns true if the `parentKind` kind is a concrete type and has a field named `fieldName` with the kind `fieldKind`
func IsConcrete ¶
IsConcrete returns true if `kind` is a concrete type, it returns an error if kind does not exist
Types ¶
This section is empty.