process

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsMap

func AsMap(got interface{}) (map[string]interface{}, error)

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 MergeBoolPtr(global, spec *bool) *bool

func MergeMap

func MergeMap(main map[string]interface{}, target map[string]interface{}) map[string]interface{}

func MergeMergeParamsMap

func MergeMergeParamsMap(main map[string]interface{}, params map[string]interface{}, key string) map[string]interface{}

func MergeParams

func MergeParams(main, params interface{}, key string) interface{}

func MustAsMap

func MustAsMap(got interface{}) map[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 ToJsonString(val interface{}) (string, error)

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 ValueFromGJson(result gjson.Result) interface{}

func ValueFromSimpleJson

func ValueFromSimpleJson(result *simplejson.Json) (res interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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