converthelper

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlatStructToMapString

func FlatStructToMapString(data interface{}) (result map[string]string)

func MapInterfaceToStruct

func MapInterfaceToStruct[T any](data map[string]interface{}) (result T)

func NestedStructToMapString

func NestedStructToMapString(data interface{}) (result map[string]interface{})

func StructToMapInterface

func StructToMapInterface(data interface{}) (result map[string]interface{})

return nil if data is not struct

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL