Documentation
¶
Index ¶
- func CapitalizeOnlyFirst(s string) string
- func ContainerIsRunning(container string) (bool, error)
- func ContainsString(content string, searchString string) (value bool, err error)
- func EndsWith(content string, searchString string) (value bool, err error)
- func ExecuteCmd(cmdStr string) *exec.Cmd
- func ExecuteCommand(cmdStr string) (res string, er error)
- func ExtractFromRegex(content string, regex string) (value []string, err error)
- func ExtractOneFromRegex(content string, regex string) (value string, err error)
- func FileExists(filename string) bool
- func FileOrString(s *string)
- func GetAbsolutePath(filename string) (path string, err error)
- func GetBracketedString(s string) string
- func GetFirstIndexAndPath(expr string) (ind int, path string, err error)
- func GetJSONFromHtml(h string) (j map[string]interface{}, err error)
- func GetJSONKeys(o globals.JSONObjectGen) ([]string, error)
- func GetLimitedString(s string, limit int) string
- func GetPathFromExpressionAndVarname(varName string, expr string) string
- func GetQueries(s string) ([]string, error)
- func GetRandomDoubleInRange(min float64, max float64) float64
- func GetRandomString() string
- func GetReadQuery(s string) (string, error)
- func GetVarComponents(expr string) (v string, ind int, path string, err error)
- func GetWriteQueries(s string) ([]string, error)
- func IsBool(v interface{}) (res bool, value bool)
- func IsDouble(v interface{}) (res bool, value float64)
- func IsIntegral(val float64) bool
- func IsJSONArray(v interface{}) (res bool, t globals.JSONArrayType)
- func IsJson(v interface{}) (res bool, value globals.JSONStruct)
- func IsNumber(v interface{}) (res bool, value float64, t globals.StatementParameterTypeBase)
- func IsProcessRunningWindows(processName string) bool
- func IsString(v interface{}) (res bool, value string)
- func JSONArrayCopy(o globals.JSONArrayGen) (globals.JSONArrayGen, error)
- func JSONCopy(o globals.JSONObjectGen) (globals.JSONObjectGen, error)
- func JSONDiff(first globals.JSONObjectGen, second globals.JSONObjectGen) bool
- func NowAsUnixMilli() int64
- func ParseHTMLByXPATH(content string, xpath string) (value []string, err error)
- func ParseHTMLByXPATHAndGetOne(content string, xpath string) (value string, err error)
- func PerformGetRequestWithFileAttachment(addr string, endpoint string, h http.Header, saveAs string) (res bool, err error)
- func PerformPostRequest(data map[string]string, addr string, endpoint string, ...) (bodyString string, err error)
- func PerformPostRequestWithContent(data map[string]string, addr string, endpoint string, ...) (bodyString string, err error)
- func ReadFile(filename string) *string
- func ReadJSON(val string) (globals.JSONStruct, error)
- func RemoveFile(path string) error
- func ReplaceAllString(content string, old string, replacement string) (res string)
- func ReplaceBracketsWithDotsInExpr(s string) string
- func SQLResultToJSON(rows *sql.Rows) (globals.JSONArray, error)
- func StarsWith(content string, searchString string) (value bool, err error)
- func StringArrayJoin(a []string, separator string) string
- func Trim(content string) (res string, err error)
- func TrimDoubleQuotedString(s *string)
- func TrimLeft(content string) (res string, err error)
- func TrimRight(content string) (res string, err error)
- func TrimSingleQuotedString(s *string)
- func UniqueStrings(in []string) []string
- func WriteFile(dir string, filename string, content []byte) error
- func XPATHReplaceEscapedSlashes(xpath *string)
- type JSONUtils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapitalizeOnlyFirst ¶
func ContainerIsRunning ¶
func ContainsString ¶
func ExecuteCmd ¶
func ExecuteCommand ¶
func ExtractFromRegex ¶
func ExtractOneFromRegex ¶
func FileExists ¶
func FileOrString ¶
func FileOrString(s *string)
func GetAbsolutePath ¶
func GetBracketedString ¶
func GetFirstIndexAndPath ¶
func GetJSONFromHtml ¶
func GetJSONKeys ¶ added in v0.9.9
func GetJSONKeys(o globals.JSONObjectGen) ([]string, error)
func GetLimitedString ¶
func GetQueries ¶
func GetRandomDoubleInRange ¶
func GetRandomString ¶
func GetRandomString() string
func GetReadQuery ¶
func GetVarComponents ¶
func GetWriteQueries ¶
func IsIntegral ¶
func IsJSONArray ¶
func IsJSONArray(v interface{}) (res bool, t globals.JSONArrayType)
func IsJson ¶
func IsJson(v interface{}) (res bool, value globals.JSONStruct)
func IsNumber ¶
func IsNumber(v interface{}) (res bool, value float64, t globals.StatementParameterTypeBase)
func IsProcessRunningWindows ¶
func JSONArrayCopy ¶
func JSONArrayCopy(o globals.JSONArrayGen) (globals.JSONArrayGen, error)
func JSONCopy ¶
func JSONCopy(o globals.JSONObjectGen) (globals.JSONObjectGen, error)
func JSONDiff ¶
func JSONDiff(first globals.JSONObjectGen, second globals.JSONObjectGen) bool
func NowAsUnixMilli ¶
func NowAsUnixMilli() int64
func ParseHTMLByXPATH ¶
func PerformPostRequest ¶
func RemoveFile ¶ added in v0.9.3
func ReplaceAllString ¶
func StringArrayJoin ¶
func TrimDoubleQuotedString ¶
func TrimDoubleQuotedString(s *string)
func TrimSingleQuotedString ¶
func TrimSingleQuotedString(s *string)
func UniqueStrings ¶
func XPATHReplaceEscapedSlashes ¶
func XPATHReplaceEscapedSlashes(xpath *string)
Types ¶
type JSONUtils ¶
type JSONUtils struct {
VariableExpressionRegexMatcher *regexp.Regexp
VariableExpressionRegexGrouper *regexp.Regexp
IndexGrouper *regexp.Regexp
IndexVarGrouper *regexp.Regexp
EvalVarExpressionRegexGrouper *regexp.Regexp
Verbose bool
Dbg bool
}
func NewJSONUtils ¶
func NewJSONUtils() *JSONUtils
Click to show internal directories.
Click to hide internal directories.