Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTagName = "default" FormatAttribute = "format" ValueAttribute = "value" NullableAttribute = "nullable" RequiredAttribute = "required" )
View Source
const TagName = "json"
Variables ¶
This section is empty.
Functions ¶
func ResetCache ¶ added in v0.2.11
func ResetCache()
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
func (*BufferPool) Get ¶
func (p *BufferPool) Get() *bytes.Buffer
func (*BufferPool) Put ¶
func (p *BufferPool) Put(buffer *bytes.Buffer)
type DefaultTag ¶
type DefaultTag struct { Format string Value string Nullable *bool Required *bool // contains filtered or unexported fields }
func NewDefaultTag ¶
func NewDefaultTag(field reflect.StructField) (*DefaultTag, error)
func (*DefaultTag) Init ¶
func (t *DefaultTag) Init(field reflect.StructField) error
func (*DefaultTag) IsNullable ¶ added in v0.2.1
func (t *DefaultTag) IsNullable() bool
func (*DefaultTag) IsRequired ¶ added in v0.2.1
func (t *DefaultTag) IsRequired() bool
type FilterEntry ¶
type Filters ¶
type Filters struct {
// contains filtered or unexported fields
}
func NewFilters ¶
func NewFilters(filterable ...*FilterEntry) *Filters
type Marshaller ¶
type Marshaller struct {
// contains filtered or unexported fields
}
func (*Marshaller) AsOutputPath ¶ added in v0.2.1
func (j *Marshaller) AsOutputPath(fieldPath string) (string, error)
Click to show internal directories.
Click to hide internal directories.