Documentation
¶
Overview ¶
Package formt defines utilities for formatting Struct field values
Index ¶
Constants ¶
View Source
const (
TagName = "format"
)
Variables ¶
This section is empty.
Functions ¶
func IsValidTagKey ¶ added in v0.5.0
Types ¶
type Tag ¶
type Tag struct {
Name string //source for output name, is case formater is not defined, use Name otherwise use Name in UpperCamel format
CaseFormat string
DateFormat string
TimeLayout string
Format string
Inline bool
Omitempty bool
Ignore bool
//TBD
Precision int
Scale int
Language string
// contains filtered or unexported fields
}
func (*Tag) CaseFormatName ¶
func (t *Tag) CaseFormatName(defaultCaseFormat text.CaseFormat) string
func (*Tag) FormatName ¶
Click to show internal directories.
Click to hide internal directories.