Documentation ¶ Index ¶ func ToMap[T any](value T) (map[string]interface{}, error) func ToStruct[T any](value map[string]interface{}) (T, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToMap ¶ func ToMap[T any](value T) (map[string]interface{}, error) ToMap converts a typed struct to map[string]interface{} Completely stateless - just give it a struct and it returns the map func ToStruct ¶ func ToStruct[T any](value map[string]interface{}) (T, error) ToStruct converts a map[string]interface{} to a typed struct Completely stateless - just give it a value and it returns the typed struct Uses JSON marshal/unmarshal for better handling of nested structs, slices, and custom types Types ¶ This section is empty. Source Files ¶ View all Source files conversion.go Click to show internal directories. Click to hide internal directories.