commUtils

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressedJson

func CompressedJson(str string) string

func ConvertValueForPersistence

func ConvertValueForPersistence(obj interface{}) (value string, valueType consts.ExtractorResultType)

func ConvertValueForUse

func ConvertValueForUse(value interface{}, valueType consts.ExtractorResultType) (obj interface{}, err error)

func GetDataFileFormat

func GetDataFileFormat(pth string) (ret consts.DataFileFormat)

func GetExecDir

func GetExecDir() (dir string)

func GetVariablesInExpressionPlaceholder

func GetVariablesInExpressionPlaceholder(expression string) (ret []string)

func GetWorkDir

func GetWorkDir() (dir string)

func IsJsonPathExpression

func IsJsonPathExpression(str string) (variName, jsonPathExpression string, yes bool)

func RandArr

func RandArr(arr []interface{}) (ret []interface{})

func RemoveLeftVariableSymbol

func RemoveLeftVariableSymbol(str string) (ret string)

func ToSliceString

func ToSliceString(data []interface{}) (res []string)

func ValueType

func ValueType(value interface{}) consts.ExtractorResultType

Types

This section is empty.

Jump to

Keyboard shortcuts

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