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