Versions in this module Expand all Collapse all v0 v0.9.2 Nov 21, 2019 Changes in this version + func Abs(number float64) float64 + func Addslashes(str string) string + func ArrayChunk(s []interface{}, size int) [][]interface + func ArrayColumn(input map[string]map[string]interface{}, columnKey string) []interface + func ArrayCombine(s1, s2 []interface{}) map[interface{}]interface + func ArrayFill(startIndex int, num uint, value interface{}) map[int]interface + func ArrayFlip(m map[interface{}]interface{}) map[interface{}]interface + func ArrayKeyExists(key interface{}, m map[interface{}]interface{}) bool + func ArrayKeys(elements map[interface{}]interface{}) []interface + func ArrayMerge(ss ...[]interface{}) []interface + func ArrayPad(s []interface{}, size int, val interface{}) []interface + func ArrayPop(s *[]interface{}) interface + func ArrayPush(s *[]interface{}, elements ...interface{}) int + func ArrayRand(elements []interface{}) []interface + func ArrayReverse(s []interface{}) []interface + func ArrayShift(s *[]interface{}) interface + func ArraySlice(s []interface{}, offset, length uint) []interface + func ArrayUnshift(s *[]interface{}, elements ...interface{}) int + func ArrayValues(elements map[interface{}]interface{}) []interface + func Base64Decode(str string) (string, error) + func Base64Encode(str string) string + func BaseConvert(number string, frombase, tobase int) (string, error) + func Basename(path string) string + func Bin2hex(str string) (string, error) + func Bindec(str string) (string, error) + func Ceil(value float64) float64 + func Checkdate(month, day, year int) bool + func Chmod(filename string, mode os.FileMode) bool + func Chown(filename string, uid, gid int) bool + func Chr(ascii int) string + func ChunkSplit(body string, chunklen uint, end string) string + func Copy(source, dest string) (bool, error) + func Crc32(str string) uint32 + func Date(format string, timestamp int64) string + func Decbin(number int64) string + func Dechex(number int64) string + func Decoct(number int64) string + func Delete(filename string) error + func Die(status int) + func DiskFreeSpace(directory string) (uint64, error) — darwin/amd64, linux/amd64 + func DiskTotalSpace(directory string) (uint64, error) — darwin/amd64, linux/amd64 + func Echo(args ...interface{}) + func Empty(val interface{}) bool + func Exec(command string, output *[]string, returnVar *int) string + func Exit(status int) + func Explode(delimiter, str string) []string + func Fclose(handle *os.File) error + func Fgetcsv(handle *os.File, length int, delimiter rune) ([][]string, error) + func FileExists(filename string) bool + func FileGetContents(filename string) (string, error) + func FilePutContents(filename string, data string, mode os.FileMode) error + func FileSize(filename string) (int64, error) + func Filemtime(filename string) (int64, error) + func Floor(value float64) float64 + func Getcwd() (string, error) + func Getenv(varname string) string + func Gethostbyaddr(ipAddress string) (string, error) + func Gethostbyname(hostname string) (string, error) + func Gethostbynamel(hostname string) ([]string, error) + func Gethostname() (string, error) + func Glob(pattern string) ([]string, error) + func HTMLEntityDecode(str string) string + func HTTPBuildQuery(queryData url.Values) string + func Hex2bin(data string) (string, error) + func Hexdec(str string) (int64, error) + func Htmlentities(str string) string + func IP2long(ipAddress string) uint32 + func Implode(glue string, pieces []string) string + func InArray(needle interface{}, haystack interface{}) bool + func IsDir(filename string) (bool, error) + func IsFile(filename string) bool + func IsNan(val float64) bool + func IsNumeric(val interface{}) bool + func IsReadable(filename string) bool + func IsWriteable(filename string) bool + func JSONDecode(data []byte, val interface{}) error + func JSONEncode(val interface{}) ([]byte, error) + func Lcfirst(str string) string + func Levenshtein(str1, str2 string, costIns, costRep, costDel int) int + func Long2ip(properAddress uint32) string + func Ltrim(str string, characterMask ...string) string + func Max(nums ...float64) float64 + func MbStrlen(str string) int + func Md5(str string) string + func Md5File(path string) (string, error) + func MemoryGetUsage(realUsage bool) uint64 + func Min(nums ...float64) float64 + func Mkdir(filename string, mode os.FileMode) error + func Nl2br(str string, isXhtml bool) string + func NumberFormat(number float64, decimals uint, decPoint, thousandsSep string) string + func Octdec(str string) (int64, error) + func Ord(char string) int + func Pack(order binary.ByteOrder, data interface{}) (string, error) + func ParseStr(encodedString string, result map[string]interface{}) error + func ParseURL(str string, component int) (map[string]string, error) + func Passthru(command string, returnVar *int) + func Pathinfo(path string, options int) map[string]string + func Pi() float64 + func Putenv(setting string) error + func Quotemeta(str string) string + func Rand(min, max int) int + func Rawurldecode(str string) (string, error) + func Rawurlencode(str string) string + func Realpath(path string) (string, error) + func Rename(oldname, newname string) error + func Round(value float64) float64 + func Rtrim(str string, characterMask ...string) string + func Sha1(str string) string + func Sha1File(path string) (string, error) + func SimilarText(first, second string, percent *float64) int + func Sleep(t int64) + func Soundex(str string) string + func Stat(filename string) (os.FileInfo, error) + func StrRepeat(input string, multiplier int) string + func StrReplace(search, replace, subject string, count int) string + func StrShuffle(str string) string + func StrWordCount(str string) []string + func Stripos(haystack, needle string, offset int) int + func Stripslashes(str string) string + func Strlen(str string) int + func Strpos(haystack, needle string, offset int) int + func Strrev(str string) string + func Strripos(haystack, needle string, offset int) int + func Strrpos(haystack, needle string, offset int) int + func Strstr(haystack string, needle string) string + func Strtolower(str string) string + func Strtotime(format, strtime string) (int64, error) + func Strtoupper(str string) string + func Strtr(haystack string, params ...interface{}) string + func Substr(str string, start uint, length int) string + func System(command string, returnVar *int) string + func Ternary(condition bool, trueVal, falseVal interface{}) interface + func Time() int64 + func Touch(filename string) (bool, error) + func Trim(str string, characterMask ...string) string + func URLDecode(str string) (string, error) + func URLEncode(str string) string + func Ucfirst(str string) string + func Ucwords(str string) string + func Umask(mask int) int — darwin/amd64, linux/amd64 + func Uniqid(prefix string) string + func Unlink(filename string) error + func Unpack(order binary.ByteOrder, data string) (interface{}, error) + func Usleep(t int64) + func VersionCompare(version1, version2, operator string) bool + func Wordwrap(str string, width uint, br string, cut bool) string + func ZipOpen(filename string) (*zip.ReadCloser, error)