Documentation
¶
Index ¶
- func ToCamelJSON(json string) string
- func ToCamelJSONBytes(json []byte) []byte
- func ToCamelVal(json interface{}) interface{}
- func ToPascalJSON(json string) string
- func ToPascalJSONBytes(json []byte) []byte
- func ToPascalVal(json interface{}) interface{}
- func ToSnakeJSON(json string) string
- func ToSnakeJSONBytes(json []byte) []byte
- func ToSnakeVal(json interface{}) interface{}
- func TransformJSON(transformation func(string) string) func(string) string
- func TransformJSONBytes(transformation func(string) string) func([]byte) []byte
- func TransformMap(transformation func(string) string) func(json map[string]interface{}) map[string]interface{}
- func TransformVal(transformation func(string) string) func(json interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToCamelJSON ¶
ToCamelJSON convert the fieldName of object in json string to camelCase
func ToCamelJSONBytes ¶
ToCamelJSONBytes convert the fieldName of object in json bytes to camelCase
func ToCamelVal ¶
func ToCamelVal(json interface{}) interface{}
ToCamelVal transform all fieldName of map[string]interface embedded in the interface{} to camelCase
func ToPascalJSON ¶
ToPascalJSON convert the fieldName of object in json string to PascalCase
func ToPascalJSONBytes ¶
ToPascalJSONBytes convert the fieldName of object in json bytes to PascalCase
func ToPascalVal ¶
func ToPascalVal(json interface{}) interface{}
ToPascalVal transform all fieldName of map[string]interface embedded in the interface{} to PascalCase
func ToSnakeJSON ¶
ToSnakeJSON convert the fieldName of object in json string to snake_case
func ToSnakeJSONBytes ¶
ToSnakeJSONBytes convert the fieldName of object in json bytes to snake_case
func ToSnakeVal ¶
func ToSnakeVal(json interface{}) interface{}
ToSnakeVal transform all fieldName of map[string]interface embedded in the interface{} to snake_case
func TransformJSON ¶
TransformJSON transform the fieldName of object in json string using transformation function
func TransformJSONBytes ¶
TransformJSONBytes transform the fieldName of object in json bytes using transformation function
func TransformMap ¶
func TransformMap(transformation func(string) string) func(json map[string]interface{}) map[string]interface{}
TransformMap transform fieldName of all map[string]interface embedded in the root map using the transformation function.
func TransformVal ¶
TransformVal transform all fieldName of map[string]interface embedded in the interface{} using the transformation function
Types ¶
This section is empty.