Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAnnoValuesFromTag ¶
func ExtractAnnoValuesFromTag[TAnno IAnnotationObject](annoObj TAnno, tag string) error
Types ¶
type AnnoTable ¶
type AnnoTable[TAnno IAnnotationObject] map[FieldPath]TAnno
func ExtractAnno ¶
func ExtractAnno[TAnno IAnnotationObject](targetObject any, defaultAnno TAnno) (AnnoTable[TAnno], error)
ExtractAnno create AnnoTable of TAnno : IAnnotationObject for each field of given targetObject's structure cache by tagName is recommended
type IAnnotationObject ¶
type IAnnotationObject interface {
TagName() string
}
type SelfRefTag ¶
type SelfRefTag struct {
Name string
}
func (*SelfRefTag) TagName ¶
func (*SelfRefTag) TagName() string
Click to show internal directories.
Click to hide internal directories.