Documentation
¶
Index ¶
- func ConvertGivenTypeToString(value interface{}, goType string) (output string, err error)
- func ConvertStringToGivenType(value string, goType string) (output interface{}, err error)
- func DeepCopy(src, dst interface{}) (err error)
- func GoToJSON(goType string) string
- func JSONToGo(jsonType string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGivenTypeToString ¶
ConvertGivenTypeToString converts a given Go type to a string.
Parameters: - value: an interface containing the value to convert - goType: a string containing the Go type to convert from
Returns: - string: a string containing the converted value - err: an error containing the error message
func ConvertStringToGivenType ¶
ConvertStringToGivenType converts a string to a given Go type.
Parameters: - value: a string containing the value to convert - goType: a string containing the Go type to convert to
Returns: - output: an interface containing the converted value - err: an error containing the error message
func DeepCopy ¶
func DeepCopy(src, dst interface{}) (err error)
DeepCopy deep copies the source interface to the destination interface.
Parameters: - src: an interface containing the source - dst: an interface containing the destination
Returns: - err: an error containing the error message
Types ¶
This section is empty.