/ build / internal

Index | Files | Exmaples | Directories
go get

Package internal is used for registering types in build, it had no clear place in other packages to go which is why it gets it’s own package


Package Files


func Get

func Get(name string) reflect.Type

Get returns a reflect.Type for a given name.

func GetFieldByTag

func GetFieldByTag(tn, tag string, p reflect.Type) (*reflect.StructField, error)

GetFieldByTag returns field by tag

func Register

func Register(name string, t interface{}) error

Register function is used to register new types of targets.

func Rules

func Rules() []string

Rules returns registered RulesTypes