Documentation ¶ Index ¶ Variables func Default(t, f interface{}) interface{} func If(b bool, t, f interface{}) interface{} func IsNone(val interface{}) bool func IsZero(val reflect.Value) bool func LCS(s1 string, s2 string) string Constants ¶ This section is empty. Variables ¶ View Source var Caller = &_Caller{} Caller init View Source var ErrNoFuncCaller = errors.New("pkg: no func caller error") ErrNoFuncCaller not found error Functions ¶ func Default ¶ added in v0.2.26 func Default(t, f interface{}) interface{} func If ¶ func If(b bool, t, f interface{}) interface{} If exported func IsNone ¶ func IsNone(val interface{}) bool IsNone exported func IsZero ¶ func IsZero(val reflect.Value) bool IsZero exported func LCS ¶ added in v0.2.26 func LCS(s1 string, s2 string) string LCS gets the longest common substring of s1 and s2. 最长公共子串 Refers to http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substring. Types ¶ This section is empty. Source Files ¶ View all Source files caller.goutils.go Directories ¶ Show internal Expand all Path Synopsis bitsetutil btcutil bytesutil captcha cast check colorutil daemonutil emailutil encoding baseutil cryptoutil gziputil hashutil ziputil ethutil facedet fileutil gopsutil goutil httputil imageutil injectutil mapsetutil markdown netutil osutil qrcode randutil runeutil schedule slugify sortutil sshutil strutil timeutil uuidutil weixin Click to show internal directories. Click to hide internal directories.