Documentation ¶
Index ¶
- func GetStructFieldNames(Struct interface{}) []string
- func GetStructFieldTagMap(Struct interface{}, keyTag string, valueTag string) map[string]string
- func GetStructFieldTagValues(Struct interface{}, tag string) []string
- func GetStructFieldValues(Struct interface{}) []interface{}
- func ScanRow(rows *sql.Rows, dest any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStructFieldNames ¶
func GetStructFieldNames(Struct interface{}) []string
Get all fields in a given struct
func GetStructFieldTagMap ¶
Get a map of tags using keyTag as map key and valueTag as map value
func GetStructFieldTagValues ¶
Get all tag names in a given struct for a given tag Note: id tag which is auto increment column in DB will not be returned
func GetStructFieldValues ¶
func GetStructFieldValues(Struct interface{}) []interface{}
Get all values in a given struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.