Documentation ¶
Index ¶
- type Field
- type FieldList
- func (l FieldList) Get(name string) *Field
- func (l FieldList) Has(name string) bool
- func (l FieldList) Names() []string
- func (l FieldList) WithTag(name string) FieldList
- func (l FieldList) WithTagValue(name, value string) FieldList
- func (l FieldList) WithoutTag(name string) FieldList
- func (l FieldList) WithoutTagValue(name, value string) FieldList
- type Parameter
- type ParameterList
- type StructDescription
- type Tag
- type TagList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldList ¶
type FieldList []Field
func (FieldList) WithTagValue ¶
func (FieldList) WithoutTag ¶
func (FieldList) WithoutTagValue ¶
type ParameterList ¶
type ParameterList []Parameter
func (ParameterList) Get ¶
func (l ParameterList) Get(name string) *Parameter
func (ParameterList) Has ¶
func (l ParameterList) Has(name string) bool
func (ParameterList) Names ¶
func (l ParameterList) Names() []string
type StructDescription ¶
type StructDescription struct {
// contains filtered or unexported fields
}
func GetDescription ¶
func GetDescription(input interface{}) (*StructDescription, error)
func GetDescriptionFromReflectType ¶ added in v0.0.4
func GetDescriptionFromReflectType(typ reflect.Type) (*StructDescription, error)
func GetDescriptionFromType ¶ added in v0.0.2
func GetDescriptionFromType(typ reflect.Type) (*StructDescription, error)
GetDescriptionFromType is deprecated - use GetDescriptionFromReflectType instead
func (*StructDescription) Field ¶
func (s *StructDescription) Field(name string) *Field
func (*StructDescription) Fields ¶
func (s *StructDescription) Fields() FieldList
func (*StructDescription) Name ¶
func (s *StructDescription) Name() string
func (*StructDescription) Type ¶
func (s *StructDescription) Type() reflect.Type
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func (*Tag) Parameters ¶
func (t *Tag) Parameters() ParameterList
Click to show internal directories.
Click to hide internal directories.