Documentation ¶
Index ¶
- Variables
- func DerefStructType(val interface{}) reflect.Type
- func FormatType(typ reflect.Type) string
- func FormatTypeExpr(expr ast.Expr) string
- func ParseTag(text string) (ret []edsl.Tag)
- type CommaEqSpaceTag
- func (c CommaEqSpaceTag) Entry(key string, values ...interface{}) edsl.CommaEqSpaceTag
- func (c CommaEqSpaceTag) EntryString(key string, values ...string) edsl.CommaEqSpaceTag
- func (c CommaEqSpaceTag) FirstKey() string
- func (c CommaEqSpaceTag) Key(key string) edsl.CommaEqSpaceTag
- func (c CommaEqSpaceTag) Name() string
- func (c CommaEqSpaceTag) Nil() edsl.CommaEqSpaceTag
- func (c CommaEqSpaceTag) Of(tagger edsl.Tag) edsl.Tag
- func (c CommaEqSpaceTag) String() string
- func (c CommaEqSpaceTag) Value(key string) string
- func (c CommaEqSpaceTag) Values(key string) []string
- type CommaTag
- func (c CommaTag) FirstKey() string
- func (c CommaTag) Key(key string) edsl.CommaTag
- func (c CommaTag) Name() string
- func (c CommaTag) Nil() edsl.CommaTag
- func (c CommaTag) Of(tagger edsl.Tag) edsl.Tag
- func (c CommaTag) String() string
- func (c CommaTag) Value(string) string
- func (c CommaTag) Values(string) []string
- type Filer
- type SemiCommaTag
- func (s SemiCommaTag) Entry(key string, value interface{}) edsl.SemiColonTag
- func (s SemiCommaTag) FirstKey() string
- func (s SemiCommaTag) Key(key string) edsl.SemiColonTag
- func (s SemiCommaTag) Name() string
- func (s SemiCommaTag) Nil() edsl.SemiColonTag
- func (s SemiCommaTag) Of(tagger edsl.Tag) edsl.Tag
- func (s SemiCommaTag) String() string
- func (s SemiCommaTag) Value(key string) string
- func (s SemiCommaTag) Values(key string) []string
- type Structer
- func (s Structer) Field(name string, typ reflect.Type, comment string, tags ...edsl.Tag) edsl.Structer
- func (s Structer) FieldNames() (ret []string)
- func (s Structer) ForEach(fn func(name string, typ reflect.Type, tags []edsl.Tag))
- func (s Structer) Header(text string) edsl.Structer
- func (s Structer) Interface() interface{}
- func (s Structer) Of(val interface{}) edsl.Structer
- func (s Structer) RawTypedField(name string, rawType ast.Expr, comment string, tags ...edsl.Tag) edsl.Structer
- func (s Structer) String() string
- func (s Structer) TagKeys(name string) (ret []string)
- func (s Structer) TagValues(name, key string) (ret []string)
- func (s Structer) Type() reflect.Type
- func (s Structer) Value() reflect.Value
- type Tagger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagStyles = make(tagStyles) TagStyleDefault edsl.TagStyle )
Functions ¶
func DerefStructType ¶
func FormatType ¶
func FormatTypeExpr ¶
Types ¶
type CommaEqSpaceTag ¶
type CommaEqSpaceTag struct {
// contains filtered or unexported fields
}
func (CommaEqSpaceTag) Entry ¶
func (c CommaEqSpaceTag) Entry( key string, values ...interface{}, ) edsl.CommaEqSpaceTag
func (CommaEqSpaceTag) EntryString ¶
func (c CommaEqSpaceTag) EntryString( key string, values ...string, ) edsl.CommaEqSpaceTag
func (CommaEqSpaceTag) FirstKey ¶
func (c CommaEqSpaceTag) FirstKey() string
func (CommaEqSpaceTag) Key ¶
func (c CommaEqSpaceTag) Key(key string) edsl.CommaEqSpaceTag
func (CommaEqSpaceTag) Name ¶
func (c CommaEqSpaceTag) Name() string
func (CommaEqSpaceTag) Nil ¶
func (c CommaEqSpaceTag) Nil() edsl.CommaEqSpaceTag
func (CommaEqSpaceTag) String ¶
func (c CommaEqSpaceTag) String() string
func (CommaEqSpaceTag) Value ¶
func (c CommaEqSpaceTag) Value(key string) string
func (CommaEqSpaceTag) Values ¶
func (c CommaEqSpaceTag) Values(key string) []string
type SemiCommaTag ¶
type SemiCommaTag struct {
// contains filtered or unexported fields
}
func (SemiCommaTag) Entry ¶
func (s SemiCommaTag) Entry(key string, value interface{}) edsl.SemiColonTag
func (SemiCommaTag) FirstKey ¶
func (s SemiCommaTag) FirstKey() string
func (SemiCommaTag) Key ¶
func (s SemiCommaTag) Key(key string) edsl.SemiColonTag
func (SemiCommaTag) Name ¶
func (s SemiCommaTag) Name() string
func (SemiCommaTag) Nil ¶
func (s SemiCommaTag) Nil() edsl.SemiColonTag
func (SemiCommaTag) String ¶
func (s SemiCommaTag) String() string
func (SemiCommaTag) Value ¶
func (s SemiCommaTag) Value(key string) string
func (SemiCommaTag) Values ¶
func (s SemiCommaTag) Values(key string) []string
Click to show internal directories.
Click to hide internal directories.