Versions in this module Expand all Collapse all v0 v0.9.99 Oct 17, 2016 Changes in this version + const Byte + const DOC_URL + const Day + const EByte + const GByte + const Hour + const KByte + const MByte + const Minute + const Month + const PByte + const TByte + const TimeLimitCodeLength + const Week + const Year + func AvatarLink(email string) (url string) + func BasicAuthDecode(encoded string) (string, string, error) + func BasicAuthEncode(username, password string) string + func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string + func DetectEncoding(content []byte) (string, error) + func EllipsisString(str string, length int) string + func EncodeMD5(str string) string + func EncodeSha1(str string) string + func FileSize(s int64) string + func GetRandomString(n int, alphabets ...byte) string + func HashEmail(email string) string + func Int64sToMap(ints []int64) map[int64]bool + func Int64sToStrings(ints []int64) []string + func IsImageFile(data []byte) bool + func IsLetter(ch rune) bool + func IsPDFFile(data []byte) bool + func IsTextFile(data []byte) bool + func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte + func RawTimeSince(t time.Time, lang string) string + func ShortSha(sha1 string) string + func StringsToInt64s(strs []string) []int64 + func Subtract(left interface{}, right interface{}) interface + func TimeSince(t time.Time, lang string) template.HTML + func TimeSincePro(then time.Time) string + func TruncateString(str string, limit int) string + func VerifyTimeLimitCode(data string, minutes int, code string) bool + type TplName string