Documentation ¶
Index ¶
- Constants
- func CompareArray(key string, value interface{}, reqValue interface{}) (bool, error)
- func Contained(obj, target interface{}) bool
- func Contains(a []string, x string) bool
- func ContainsIgnoreCase(a []string, x string) bool
- func Filter(arr interface{}, params map[string][]string) interface{}
- func IsEqual(key string, value interface{}, reqValue interface{}) (bool, error)
- func IsFloatEqual(a, b float64) bool
- func MergeGeneralMaps(maps ...map[string]interface{}) map[string]interface{}
- func MergeStringMaps(maps ...map[string]string) map[string]string
- func PathExists(path string) (bool, error)
- func RandSeq(n int, chs []rune) string
- func RandSeqWithAlnum(n int) string
- func Retry(retryNum int, desc string, silent bool, ...) error
- func RvRepElement(arr []string) []string
- func Slice(arr interface{}, offset, limit int) interface{}
- func Sort(arr interface{}, sortKey, sortDir string) interface{}
- func StructToMap(structObj interface{}) (map[string]interface{}, error)
- func WaitForCondition(f func() (bool, error), interval, timeout time.Duration) error
Constants ¶
View Source
const Epsilon float64 = 0.00000001
Epsilon ...
Variables ¶
This section is empty.
Functions ¶
func CompareArray ¶ added in v0.5.3
func ContainsIgnoreCase ¶ added in v0.12.0
func MergeGeneralMaps ¶
func PathExists ¶
func RandSeqWithAlnum ¶ added in v0.1.9
func RvRepElement ¶ added in v0.3.0
remove redundant elements
func Slice ¶ added in v0.12.0
func Slice(arr interface{}, offset, limit int) interface{}
Slicing implements pagination
func Sort ¶ added in v0.12.0
func Sort(arr interface{}, sortKey, sortDir string) interface{}
Sorting sorts slice with struct field, note: only string and int are supported now
func StructToMap ¶ added in v0.1.4
StructToMap ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.