Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToStruct ¶
MapToStruct copies values from map m to the struct pointed to by dest. Keys are matched to struct fields using orm tags or snake_case names.
func MapsToStructs ¶
MapsToStructs converts a slice of maps to a slice of structs.
func StructToMap ¶ added in v0.3.0
StructToMap converts a struct or pointer to struct into a map. Column names are determined by `db` or `orm` tags, falling back to snake_case field names. Fields tagged with `db:"-"` are omitted. Zero-value fields are included unless the tag contains `omitempty`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.