Documentation ¶
Index ¶
- func AsMap(got interface{}) (map[string]interface{}, error)
- func AsSimpleJson(val interface{}) (*simplejson.Json, error)
- func FindTargetFromMap(in interface{}, key string) interface{}
- func Merge(main, target interface{}) interface{}
- func MergeBoolPtr(global, spec *bool) *bool
- func MergeMap(main map[string]interface{}, target map[string]interface{}) map[string]interface{}
- func MergeMergeParamsMap(main map[string]interface{}, params map[string]interface{}, key string) map[string]interface{}
- func MergeParams(main, params interface{}, key string) interface{}
- func MustAsMap(got interface{}) map[string]interface{}
- func MustAsSimpleJson(val interface{}) *simplejson.Json
- func MustToJsonString(val interface{}) string
- func ReplaceVariable(in interface{}, feildsMap map[string]interface{}) interface{}
- func ToJsonString(val interface{}) (string, error)
- func ToStandard(val interface{}) (res interface{})
- func ValueFromGJson(result gjson.Result) interface{}
- func ValueFromSimpleJson(result *simplejson.Json) (res interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsSimpleJson ¶
func AsSimpleJson(val interface{}) (*simplejson.Json, error)
func FindTargetFromMap ¶
func FindTargetFromMap(in interface{}, key string) interface{}
func Merge ¶
func Merge(main, target interface{}) interface{}
Merge function does not support ptr values
func MergeBoolPtr ¶
func MergeMergeParamsMap ¶
func MergeParams ¶
func MergeParams(main, params interface{}, key string) interface{}
func MustAsSimpleJson ¶
func MustAsSimpleJson(val interface{}) *simplejson.Json
func MustToJsonString ¶
func MustToJsonString(val interface{}) string
func ReplaceVariable ¶
func ReplaceVariable(in interface{}, feildsMap map[string]interface{}) interface{}
func ToJsonString ¶
func ToStandard ¶
func ToStandard(val interface{}) (res interface{})
ToStandard transfer data into specific type float and int as float64 string as string other do nothing
func ValueFromGJson ¶
func ValueFromSimpleJson ¶
func ValueFromSimpleJson(result *simplejson.Json) (res interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.