Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToSnakeCase ¶ added in v0.8.0
Types ¶
type Cache ¶ added in v0.8.0
Cache caches the result of field/tag parsing for each type.
func (*Cache) GetHeader ¶ added in v0.8.0
Header returns the field names in the same order as the struct definition.
func (*Cache) GetSortColumns ¶ added in v1.3.3
GetSortColumns returns the entity's fields tagged with standardized_sort, sorted ascending by SortOrder.
func (*Cache) GetStructTagMap ¶ added in v0.8.0
GetStructTagMap .
type FieldInfo ¶ added in v0.8.0
type FieldInfo struct {
Name string
Required bool
Target string
Index []int
GreaterThan *float64
LessThan *float64
GreaterOrEqual *float64
LessOrEqual *float64
EnumValues []int64
SortOrder int
Kind SortKind
}
FieldInfo contains the parsed tag values for a single attribute.
Click to show internal directories.
Click to hide internal directories.