Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommaEqSpaceTag ¶
type CommaEqSpaceTag interface {
Tag
Nil() CommaEqSpaceTag
Key(key string) CommaEqSpaceTag
Entry(key string, values ...interface{}) CommaEqSpaceTag
EntryString(key string, values ...string) CommaEqSpaceTag
}
type SemiColonTag ¶
type SemiColonTag interface {
Tag
Nil() SemiColonTag
Key(key string) SemiColonTag
Entry(key string, value interface{}) SemiColonTag
}
type Structer ¶
type Structer interface {
fmt.Stringer
Header(text string) Structer
Field(name string, typ reflect.Type, comment string, tags ...Tag) Structer
RawTypedField(name string, rawType ast.Expr, comment string, tags ...Tag) Structer
Of(val interface{}) Structer
ForEach(fn func(name string, typ reflect.Type, tags []Tag))
FieldNames() []string
TagKeys(name string) []string
TagValues(name, key string) []string
Type() reflect.Type
Value() reflect.Value
Interface() interface{}
}
type Tagger ¶
type Tagger interface {
// Comma `name:"key1,key2,,,"`
Comma(name string) CommaTag
// CommaEqSpace `name:"key1=value,key2=value1 value2,,,key3,,,"`
CommaEqSpace(name string) CommaEqSpaceTag
// SemiColon `name:"key1:value2;key2;key3:value3;;;"`
SemiColon(name string) SemiColonTag
}
Click to show internal directories.
Click to hide internal directories.