Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFromTag ¶
func ExtractFromTag(annotate IAnnotation, tag string) error
Types ¶
type AnnMap ¶
type AnnMap map[string]IAnnotation
type IAnnotation ¶
type IAnnotation interface {
TagName() string
}
type StructAnnotations ¶
type StructAnnotations struct { Spawners map[string]reflectool.Spawner Field2Annotations map[string]AnnMap // field path => annotation name => annotation instance }
func Analyze ¶
func Analyze(prototype interface{}, annotations ...IAnnotation) (*StructAnnotations, error)
func (StructAnnotations) Get ¶
func (sa StructAnnotations) Get(fieldName string, tagName string) IAnnotation
func (StructAnnotations) Spawn ¶
func (sa StructAnnotations) Spawn(annotation IAnnotation) IAnnotation
Click to show internal directories.
Click to hide internal directories.