package
0.0.0-20240311033727-62d34d757da5
Repository: https://github.com/jo-hoe/serverless-toolbox.git
Documentation: pkg.go.dev
# Functions
Converts a struct into a json string.
# Interfaces
Serializable converts a json string into the struct
Example: For the struct type Person struct { Name string }
The ToStruct function looks like: func (person *Person) ToStruct(jsonString string) (interface{}, error) { err := json.Unmarshal([]byte(jsonString), &person) return person, err }.