Versions in this module Expand all Collapse all v1 v1.1.2 Dec 23, 2022 Changes in this version + type Real interface v1.1.1 Nov 25, 2021 Changes in this version + const StrPadBoth + const StrPadLeft + const StrPadRight + var MaxPrecision = 14 + func Abs(number float64) float64 + func Addslashes(str string) string + func ArrayChunk(array []interface{}, size int) [][]interface + func ArrayColumn(input []map[string]interface{}, columnKey string) []interface + func ArrayCombine(keys, values []interface{}) map[interface{}]interface + func ArrayDiff(array1, array2 []interface{}) []interface + func ArrayFilter(input interface{}, callback func(interface{}) bool) interface + func ArrayFlip(input interface{}) interface + func ArrayIntersect(array1, array2 []interface{}) []interface + func ArrayKeyExists(k interface{}, m map[interface{}]interface{}) bool + func ArrayKeys(input interface{}) interface + func ArrayPad(array []interface{}, size int, value interface{}) []interface + func ArrayPop(s *[]interface{}) interface + func ArrayPush(s *[]interface{}, elements ...interface{}) int + func ArrayReverse(s []interface{}) []interface + func ArrayShift(s *[]interface{}) interface + func ArraySlice(array []interface{}, offset, length uint) []interface + func ArraySum(array interface{}) interface + func ArrayUnique(array interface{}) interface + func ArrayUnshift(s *[]interface{}, elements ...interface{}) int + func Base64Decode(data string) (string, error) + func Base64Encode(data string) string + func BaseConvert(number string, frombase, tobase int) (string, error) + func Basename(path string) string + func Bin2hex(src []byte) string + func Bindec(str string) (string, error) + func Ceil(value float64) float64 + func Chdir(dir string) error + func Checkdate(month, day, year int) bool + func Chmod(filename string, mode os.FileMode) error + func Chown(filename string, uid, gid int) error + func Chr(ascii int) string + func Copy(src, dst string) error + func Count(v interface{}) int + func Crc32(str string) uint32 + func CtypeAlnum(text string) bool + func CtypeAlpha(text string) bool + func CtypeCntrl(text string) bool + func CtypeDigit(text string) bool + func CtypeGraph(text string) bool + func CtypeLower(text string) bool + func CtypePrint(text string) bool + func CtypePunct(text string) bool + func CtypeSpace(text string) bool + func CtypeUpper(text string) bool + func CtypeXdigit(text string) bool + func Date(f string, timestamp int64) string + func DateAdd(t time.Time, d time.Duration) time.Time + func DateCreate(str string) (time.Time, error) + func DateCreateFromFormat(f string, t string) (time.Time, error) + func DateDateSet(year, month, day int) (time.Time, error) + func DateDefaultTimezoneGet() string + func DateDefaultTimezoneSet(tz string) error + func DateDiff(t1 time.Time, t2 time.Time) time.Duration + func DateFormat(t time.Time, f string) string + func DateISODateSet(year, week, day int) (time.Time, error) + func DateIntervalCreateFromDateString(str string) (time.Duration, error) + func DateModify(t time.Time, modify string) (time.Time, error) + func DateOffsetGet(t time.Time) int + func DateSub(t time.Time, d time.Duration) time.Time + func DateTimestampGet(t time.Time) int64 + func DateTimestampSet(timestamp int64) time.Time + func DateTimezoneGet(t time.Time) string + func DateTimezoneSet(t time.Time, tz string) (time.Time, error) + func Decbin(number int64) string + func Dechex(number int64) string + func Decoct(number int64) string + func DefaultNumberFormat(number float64, decimals int) string + func Dirname(path string) string + func DirnameWithLevels(path string, levels int) string + func Explode(delimiter, str string) []string + func FileExists(filename string) bool + func FileGetContents(filename string) (string, error) + func FilePutContents(filename string, data string) error + func FileSize(filename string) (int64, error) + func FirstDateOfLastMonth(t time.Time) time.Time + func FirstDateOfMonth(t time.Time) time.Time + func FirstDateOfNextMonth(t time.Time) time.Time + func Floor(value float64) float64 + func GetHeaders(url string) (http.Header, error) + func GetHostByAddr(ipAddress string) (string, error) + func GetHostByName(hostname string) (string, error) + func GetHostByNamel(hostname string) ([]string, error) + func GetHostName() (string, error) + func GetMetaTags(url string) (map[string]string, error) + func Getcwd() string + func Getenv(varname string) string + func HTMLSpecialchars(str string) string + func HTMLSpecialcharsDecode(str string) string + func HTTPBuildQuery(data map[string]interface{}) string + func Hex2bin(str string) []byte + func Hexdec(str string) (int64, error) + func IP2Long(ipAddress string) uint32 + func Implode(glue string, pieces []string) string + func InArray(needle interface{}, haystack interface{}) bool + func Ireplace(search, replace interface{}, subject string) string + func IsDir(filename string) bool + func IsExecutable(filename string) bool + func IsFile(filename string) bool + func IsLeapYear(t time.Time) bool + func IsLink(filename string) bool + func IsReadable(filename string) bool + func IsWritable(filename string) bool + func JSONDecode(jsonStr string, v interface{}) error + func JSONEncode(value interface{}) (string, error) + func KeyExists(k interface{}, m map[interface{}]interface{}) bool + func LastDateOfMonth(t time.Time) time.Time + func Lcfirst(str string) string + func Link(target, link string) error + func LocalDate(f string, timestamp int64) string + func Long2IP(properAddress uint32) string + func Ltrim(str string, chars ...string) string + func Md5(str string) string + func Md5File(filename string) (string, error) + func MemoryGetUsage(realUsage bool) uint64 + func Microtime() float64 + func Mkdir(pathname string, mode os.FileMode, recursive bool) error + func MtRand(min, max int) int + func NumberFormat(number float64, decimals int, decPoint, thousandsSep string) string + func Octdec(str string) (int64, error) + func Ord(character string) rune + func ParseDocument(doc io.Reader) map[string]string + func ParseURL(str string) (*url.URL, error) + func Pi() float64 + func Putenv(setting string) error + func Rand(min, max int) int + func RandomBytes(length int) []byte + func RandomString(length int) string + func RawURLDecode(str string) string + func RawURLEncode(str string) string + func Realpath(path string) string + func Rename(oldname, newname string) error + func Replace(search, replace interface{}, subject string) string + func Rmdir(dirname string) error + func Round(val float64, precision int) float64 + func Rsort(array interface{}) interface + func Rtrim(str string, chars ...string) string + func Scandir(dir string) ([]string, error) + func Sha1(str string) string + func Sha1File(path string) (string, error) + func SimilarText(first, second string) (count int, percent float32) + func Sort(array interface{}) interface + func StrPad(input string, padLength int, padString string, padType int) string + func StrRepeat(input string, multiplier int) string + func StrWordCount(str string) []string + func Stripos(haystack, needle string) int + func Stripslashes(str string) string + func Stristr(haystack, needle string) string + func Strlen(str string) int + func Strpos(haystack, needle string) int + func Strrev(str string) string + func Strripos(haystack, needle string) int + func Strrpos(haystack, needle string) int + func Strstr(haystack, needle string) string + func Strtolower(str string) string + func Strtotime(str string) int64 + func Strtoupper(str string) string + func Substr(str string, start, length int) string + func Symlink(target, link string) error + func Time() int64 + func Today(f string) string + func Touch(filename string) error + func Trim(str string, chars ...string) string + func URLDecode(str string) string + func URLEncode(str string) string + func Ucfirst(str string) string + func Ucname(str string) string + func Ucwords(str string, fs ...RuneMatchFunc) string + func Unlink(filename string) error + type ImageInfo struct + Format string + Height int + Mime string + Width int + func GetImageSize(filename string) (ImageInfo, error) + func GetImageSizeFromString(data []byte) (ImageInfo, error) + type RuneMatchFunc func(rune) bool