meta

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllConcrete

func AllConcrete() map[string]reflect.Type

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

func AllImplementers(kind string) (map[string]reflect.Type, error)

AllImplementers finds all known types that implement `kind`, this will return an error if `kind` is not an interface type

func AllInterface

func AllInterface() map[string]reflect.Type

AllInterface returns all known interface types, keyed by their `kind`

func AllKinds

func AllKinds() map[string]reflect.Type

AllKinds returns all known types

func DoesImplement

func DoesImplement(concrete, ifc string) (bool, error)

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

func IsConcrete(kind string) (bool, reflect.Type, error)

IsConcrete returns true if `kind` is a concrete type, it returns an error if kind does not exist

func IsInterface

func IsInterface(kind string) (bool, reflect.Type, error)

IsInterface returns true if `kind` is an interface type, it returns an error if kind does not exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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