Documentation ¶
Index ¶
- Constants
- func Abs(x float64) float64
- func Acos(x complex128) complex128
- func Acosh(x complex128) complex128
- func Addcslashes(s string, c byte) string
- func Addslashes(s string) string
- func Array(v ...interface{}) []interface{}
- func ArrayColumn(arrayMap map[string]map[string]interface{}, columnKey string) (r []interface{})
- func ArrayCountValues(s []interface{}) map[interface{}]uint
- func ArrayFill(startIndex uint, num uint, value interface{}) map[uint]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 ArrayMerge(arr ...[]interface{}) []interface{}
- func ArrayPush(s *[]string, args ...string)
- func ArrayReverse(s []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(s string, suffix ...string) string
- func Bin2hex(b string) string
- func Bindec(b string) int64
- func Boolval(val interface{}) bool
- func Ceil(x float64) float64
- func Chdir(dir string) error
- func Checkdate(month, day, year uint) bool
- func Chmod(name string, mode os.FileMode) error
- func Chown(name string, uid int, gid int) error
- func Chr(ascii int) string
- func Closedir(fd int) (err error)
- func Copy(dstName string, srcName string) (written int64, err error)
- func Cos(x float64) float64
- func Cosh(x float64) float64
- func Count(v []interface{}) int
- func Date(format string, t time.Time) string
- func Decbin(x int64) string
- func Dechex(x int64) string
- func Decoct(x int64) string
- func Delete(name string) error
- func Dirname(dirPth string) ([]os.FileInfo, error)
- func Echo(args ...interface{})
- func Empty(v interface{}) bool
- func Exec(s string)
- func Exp(x float64) float64
- func Explode(s, sep string) []string
- func Expm1(x float64) float64
- func Fclose(file *os.File) error
- func FileExists(path string) bool
- func Filemtime(file string) (int64, error)
- func Floor(x float64) float64
- func GetHtmlTranslationTable() map[string]string
- func Getcwd() (dir string)
- func Gettype(v interface{}) string
- func Hex2bin(x string) string
- func Htmlspecialchars(s string) string
- func HtmlspecialcharsDecode(s string) string
- func Implode(a []string, sep string) string
- func Intval(v interface{}) (int, error)
- func IsBool(v interface{}) bool
- func IsDir(name string) bool
- func IsFile(name 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(name string) bool
- func IsWritable(name string) bool
- func IsWriteable(name string) bool
- func Join(a []string, sep string) string
- func JsonDecode(v interface{}) ([]byte, error)
- func JsonEncode(data []byte, v interface{}) error
- func Log(x float64) float64
- func Log10(x float64) float64
- func Log1p(x float64) float64
- func Ltrim(s, cutset string) string
- func Max(x, y float64) float64
- func MbStrlen(s string) int
- func MbSubstr(s string, start int, length ...int) string
- func Md5(s string) string
- func Md5File(filename string) string
- func Min(x, y float64) float64
- func Mkdir(name string, mode os.FileMode) error
- func Nl2br(s string) string
- func Ord(s byte) byte
- func ParseStr(query string) (url.Values, error)
- func ParseUrl(rawurl string) (*url.URL, error)
- func Pi() float64
- func Pow(x, y float64) float64
- func Print(v interface{})
- func PrintR(v interface{})
- func Rand(args ...int) int
- func Rawurldecode(s string) (string, error)
- func Rawurlencode(s string) string
- func Realpath(name string) string
- func Rename(oldpath, newpath string) error
- func Round(x float64) float64
- func Rtrim(s, cutset string) string
- func Sha1(s string) string
- func Sha1File(filename string) string
- func Sin(x float64) float64
- func Sinh(x float64) float64
- func Sleep(s int64)
- func Sqrt(x float64) float64
- func StrPad(s string, length int, args ...string) string
- func StrRepeat(s string, count int) string
- func StrReplace(s, old, new string, n int) string
- func StripTags(s string) string
- func Stripos(s, substr string) int
- func Strlen(s string) int
- func Strpos(s, substr string) int
- func Strrchr(s, substr string) string
- func Strrev(s string) string
- func Strripos(s, substr string) int
- func Strrpos(s, substr string) int
- func Strstr(s, substr string) int
- func Strtolower(s string) string
- func Strtoupper(s string) string
- func Strval(val interface{}) string
- func Substr(s string, start int, length ...int) string
- func SubstrCount(s, substr string) int
- func SysGetTempDir() string
- func Tan(x float64) float64
- func Tanh(x float64) float64
- func Time() int64
- func Trim(s, cutset string) string
- func Ucfirst(s string) string
- func Unlink(name string) error
- func Urldecode(s string) (string, error)
- func Urlencode(s string) string
- type ArrayMap
- type ArraySlice
Constants ¶
const ( CaseLOWER = iota CaseUPPER )
Constants for ArrayChangeKeyCase
const ( StrPadRight = "STR_PAD_RIGHT" StrPadLeft = "STR_PAD_LEFT" )
Constants for StrPad
Variables ¶
This section is empty.
Functions ¶
func Addcslashes ¶
Addcslashes - Quote string with slashes in a C style
func ArrayColumn ¶
ArrayColumn — Return the values from a single column in the input array
func ArrayCountValues ¶
func ArrayCountValues(s []interface{}) map[interface{}]uint
ArrayCountValues — Counts all the values of an array
func ArrayFillKeys ¶
func ArrayFillKeys(keys []interface{}, value interface{}) map[interface{}]interface{}
ArrayFillKeys - Fill an array with values, specifying keys
func ArrayFlip ¶
func ArrayFlip(arrayMap map[interface{}]interface{}) map[interface{}]interface{}
ArrayFlip - Exchanges all keys with their associated values in an array
func ArrayIntersect ¶
ArrayIntersect — Computes the intersection of arrays
func ArrayMerge ¶
func ArrayMerge(arr ...[]interface{}) []interface{}
ArrayMerge — Merge one or more arrays
func ArrayReverse ¶
func ArrayReverse(s []interface{}) []interface{}
ArrayReverse - Return an array with elements in reverse order
func Base64Decode ¶
Base64Decode - Decodes data encoded with MIME base64
func BaseConvert ¶
BaseConvert - Convert a number between arbitrary bases
func Count ¶
func Count(v []interface{}) int
Count - Count all elements in an array, or something in an object
func Expm1 ¶
Expm1 - Returns exp(number) - 1 computed in a way that is accurate even when the value of number is close to zero
func FileExists ¶
FileExists - Checks whether a file or directory exists
func GetHtmlTranslationTable ¶
GetHtmlTranslationTable - Returns the translation table used by htmlspecialchars() and htmlentities()
func Htmlspecialchars ¶
Htmlspecialchars - Convert special characters to HTML entities
func HtmlspecialcharsDecode ¶
HtmlspecialcharsDecode - Convert special HTML entities back to characters
func IsInfinite ¶
IsInfinite - Finds whether a value is infinite
func IsNumeric ¶
func IsNumeric(x interface{}) (result bool)
IsNumeric - Finds whether a variable is a number or a numeric string
func IsReadable ¶
IsReadable - Tells whether a file exists and is readable
func IsWritable ¶
IsWritable - Tells whether the filename is writable
func JsonEncode ¶
JsonEncode - Returns the JSON representation of a value
func Log1p ¶
Log1p - Returns log(1 + number) computed in a way that is accurate even when the value of number is close to zero
func PrintR ¶
func PrintR(v interface{})
PrintR - Prints human-readable information about a variable
func Rawurldecode ¶
Rawurldecode - Decodes URL-encoded string
func Rawurlencode ¶
Rawurlencode - URL-encode according to RFC 3986
func StrReplace ¶
StrReplace - Replace all occurrences of the search string with the replacement string
func Stripos ¶
Stripos - Find the position of the first occurrence of a case-insensitive substring in a string
func Strripos ¶
Strripos - Find the position of the last occurrence of a case-insensitive substring in a string
func SubstrCount ¶
SubstrCount - Count the number of substring occurrences
func SysGetTempDir ¶
func SysGetTempDir() string
SysGetTempDir - Returns directory path used for temporary files
Types ¶
type ArrayMap ¶
type ArrayMap map[string]interface{}
ArrayMap is one of Array type
func ArrayChangeKeyCase ¶
ArrayChangeKeyCase - Changes the case of all keys in an array
type ArraySlice ¶
type ArraySlice []interface{}
ArraySlice type
func ArrayChunk ¶
func ArrayChunk(input ArraySlice, size int) ArraySlice
ArrayChunk - Split an array into chunks
Source Files ¶
- addcslashes.go
- addslashes.go
- array.go
- array_change_key_case.go
- array_chunk.go
- array_column.go
- array_count_values.go
- array_fill.go
- array_fill_keys.go
- array_flip.go
- array_intersect.go
- array_merge.go
- array_push.go
- array_reverse.go
- base64.go
- basename.go
- checkdate.go
- date.go
- directory.go
- echo.go
- exec.go
- filesystem.go
- is_file.go
- is_numeric.go
- json.go
- math.go
- md5.go
- print.go
- print_r.go
- sha1.go
- sleep.go
- strings.go
- sys_get_temp_dir.go
- time.go
- url.go
- variable.go