Versions in this module Expand all Collapse all v0 v0.0.1 Jul 8, 2025 Changes in this version + const StrPadLeft + const StrPadRight + var CASE_LOWER int = 0 + var CASE_UPPER int = 1 + var FORMAT_DATE string = "2006-01-02" + var FORMAT_DATETIME string = "2006-01-02 15:04:05" + var RET_INT = 1 + var RET_INT64 = 2 + var RET_STRING = 0 + func Abs(number float64) float64 + func Acos(x complex128) complex128 + func Acosh(x complex128) complex128 + func Addcslashes(s string, c byte) string + func Addslashes(str string) string + func Array(v ...interface{}) []interface + func ArrayChangeKeyase(arrayOrigin map[string]interface{}, changeTo int) map[string]interface + func ArrayChunk(s []interface{}, size int) [][]interface + func ArrayColumn(arrayMap map[string]map[string]interface{}, columnKey string) (r []interface{}) + func ArrayColumnMapStringStringRetArrayString(array []map[string]string, column string) []string + func ArrayColumnRetArrayString(array []map[string]interface{}, column string) []string + func ArrayCombine(s1, s2 []interface{}) map[interface{}]interface + func ArrayCountValues(s []interface{}) map[interface{}]uint + func ArrayDiff(array1, array2 []interface{}) []interface + func ArrayFill(startIndex int, num uint, value interface{}) map[int]interface + func ArrayFillKeys(keys []interface{}, value interface{}) map[interface{}]interface + func ArrayFlip(arrayMap map[interface{}]interface{}) map[interface{}]interface + func ArrayIntersect(nums1, nums2 []int) []int + func ArrayKeyExists(key interface{}, m map[interface{}]interface{}) bool + func ArrayKeyExistsString(needle string, haystack map[string]interface{}) bool + func ArrayKeyFirst(array map[interface{}]interface{}) interface + func ArrayKeyLast(arr map[interface{}]interface{}) interface + func ArrayKeys(elements map[interface{}]interface{}) []interface + func ArrayKeysInt(array map[int]interface{}) []int + func ArrayKeysInterface(array map[interface{}]interface{}) []interface + func ArrayMerge(ss ...[]interface{}) []interface + func ArrayMergeString(arr1, arr2 []string) []string + 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 ArraySearch(needle interface{}, haystack []interface{}) int + func ArraySearchString(needle string, haystack []string) int + 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 Asin(x complex128) complex128 + func Asinh(x complex128) complex128 + func Atan(x complex128) complex128 + func Atan2(y, x float64) float64 + func Atanh(x complex128) complex128 + func Base64Decode(s string) (string, error) + func Base64Encode(s string) string + func BaseConvert(num string, frombase, tobase int) (string, error) + func Basename(path string) string + func Bin2hex(str string) (string, error) + func Bindec(str string) (string, error) + func Boolval(val interface{}) bool + func CamelStringToUnderline(s string) string + func Ceil(x float64) float64 + func Chdir(dir string) error + func Checkdate(month, day, year uint) bool + func Chgrp(name string, uid, gid int) error + func Chmod(filename string, mode os.FileMode) bool + func Chown(filename string, uid, gid int) bool + func Chr(ascii int) string + func ChunkSplit(str string, chunkLen int, end string) string + func Closedir(fd syscall.Handle) (err error) + func Copy(source, dest string) (bool, error) + func Cos(x float64) float64 + func Cosh(x float64) float64 + func Count(v []interface{}) int + func Crc32(str string) uint32 + func Date(timestamp int64) string + func DateAdd(t time.Time, years int, months int, days int) time.Time + func DateAfter(seconds int64, timestamp int64) string + func DateBefore(seconds int64, timestamp int64) string + func DateDaysafter(days int64, timestamp int64) string + func DateDaysbefore(days int64, timestamp int64) string + func DateHoursafter(hours int64, timestamp int64) string + func DateHoursbefore(hours int64, timestamp int64) string + func DateMinutesbefore(minutes int64, timestamp int64) string + func DateNow() string + func DateToday() string + func DateTomorrow() string + func Date_minutesafter(minutes int64, timestamp int64) string + func Datetime(timestamp int64) string + func DatetimeAfter(seconds int64, timestamp int64) string + func DatetimeBefore(seconds int64, timestamp int64) string + func DatetimeDaysafter(days int64, timestamp int64) string + func DatetimeDaysbefore(days int64, timestamp int64) string + func DatetimeHoursafter(hours int64, timestamp int64) string + func DatetimeHoursbefore(hours int64, timestamp int64) string + func DatetimeMinutesafter(minutes int64, timestamp int64) string + func DatetimeMinutesbefore(minutes int64, timestamp int64) string + func DatetimeNow() string + func DatetimeToday() string + func DatetimeTomorrow() string + func Decbin(x int64) string + func Dechex(x int64) string + func Decoct(x int64) string + func Delete(filename string) error + func Die(status int) + func Dirname(dirPth string) ([]os.FileInfo, error) + 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(v interface{}) bool + func Exec(command string, output *[]string, returnVar *int) string + func Exit(status int) + func Exp(x float64) float64 + func Explode(delimiter, str string) []string + func Expm1(x float64) float64 + func Fclose(handle *os.File) error + func Fgetcsv(handle *os.File, length int, delimiter rune) ([][]string, error) + func FileExists(filename string) bool + func FileExits(path string) bool + func FileExitsDetail(path string) (bool, error) + 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(x float64) float64 + func GetENV() (env string) + func GetHtmlTranslationTable() map[string]string + func GetIpInfo(ip string) string + 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 Gettype(v interface{}) string + func Glob(pattern string) (matches []string, err 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 HtmlEntityDecode(str string) string + func Htmlentities(str string) string + func Htmlspecialchars(s string) string + func HtmlspecialcharsDecode(s string) string + func IP2long(ipAddress string) uint32 + func Implode(glue string, pieces []string) string + func InArray(needle interface{}, haystack interface{}) bool + func Intval(str string) (int, error) + func IsBool(v interface{}) bool + func IsDir(filename string) (bool, error) + func IsFile(filename string) bool + func IsFinite(f float64, sign int) bool + func IsInfinite(f float64, sign int) bool + func IsNan(f float64) bool + func IsNumeric(x interface{}) (result bool) + func IsReadable(filename string) bool + func IsWritable(name string) bool + func IsWriteable(filename string) bool + func JSONDecode(data []byte, val interface{}) error + func JSONEncode(val interface{}) ([]byte, error) + func Join(a []string, sep string) string + func JsonDecode(data []byte, v interface{}) error + func JsonEncode(v interface{}) ([]byte, error) + func Lcfirst(str string) string + func Levenshtein(str1, str2 string, costIns, costRep, costDel int) int + func Log(x float64) float64 + func Log10(x float64) float64 + func Log1p(x float64) float64 + func Long2ip(properAddress uint32) string + func Ltrim(str string, characterMask ...string) string + func MapCamelStringToUnderline(body map[string]interface{}) map[string]interface + func MapMerge(arr1, arr2 map[string]interface{}) map[string]interface + func MapMergeKeyInterface(arr1, arr2 map[interface{}]interface{}) map[interface{}]interface + func MapMergeString(arr1, arr2 map[string]string) map[string]string + func MapUnderlineStringToCamel(body map[string]interface{}) map[string]interface + func Max(nums ...float64) float64 + func MbStrlen(s string) int + func MbSubstr(s string, start int, length ...int) string + func Md5(s 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 MkdirAll(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 ParseUrl(rawurl string) (*url.URL, error) + func Passthru(command string, returnVar *int) + func Pathinfo(path string, options int) map[string]string + func Pi() float64 + func Pow(x, y float64) float64 + func Print(v interface{}) + func PrintR(v interface{}) + func Putenv(setting string) error + func Quotemeta(str string) string + func Rand(min, max int) int + func Rawurldecode(s string) (string, error) + func Rawurlencode(s string) string + func Realpath(path string) (string, error) + func Rename(oldpath, newpath string) error + func Rmdir(path string) error + func Round(x float64) float64 + func Rtrim(str string, characterMask ...string) string + func Scandir(dirname string) ([]os.FileInfo, error) + func Sha1(s string) string + func Sha1File(path string) (string, error) + func SimilarText(first, second string, percent *float64) int + func Sin(x float64) float64 + func Sinh(x float64) float64 + func Sleep(s int64) + func Soundex(str string) string + func Sqrt(x float64) float64 + func Stat(name string) (os.FileInfo, error) + func StrPad(s string, length int, args ...string) string + func StrRepeat(s string, count int) string + func StrReplace(search, replace, subject string, count int) string + func StrShuffle(str string) string + func StrToTime(strtime interface{}) int64 + func StrToTimeDate(strtime interface{}) int64 + func StrToTimeDateTime(strtime interface{}) int64 + func StrWordCount(str string) []string + func Stringval(value interface{}) string + func StripTags(s string) string + func Stripos(haystack, needle string, offset int) int + func Stripslashes(str string) string + func Strlen(s string) int + func Strpos(haystack, needle string, offset int) int + func Strrchr(s, substr string) string + 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 Strval(val interface{}) string + func Substr(str string, start uint, length int) string + func SubstrCompare(main_str, str string, offset, length int) int + func SubstrCount(s, substr string) int + func SysGetTempDir() string + func System(command string, returnVar *int) string + func Tan(x float64) float64 + func Tanh(x float64) float64 + 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 UnderlineStringToCamel(s string) string + func Uniqid(prefix string) string + func Unlink(name string) error + func Unpack(order binary.ByteOrder, data string) (interface{}, error) + func Urldecode(s string) (string, error) + func Urlencode(s string) string + func Usleep(ms 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)