Versions in this module Expand all Collapse all v0 v0.1.1 Jul 27, 2017 v0.1.0 Jul 24, 2017 Changes in this version + const Byte + 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 BasicAuthDecode(encoded string) (string, string, error) + func BasicAuthEncode(username, password string) string + func Compress(infolder string, files []string, dest string) error + func CopyDirFiles(src, dest string) error + func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string + func DateFormat(t time.Time, format string) string + func DateParse(dateString, format string) (time.Time, error) + func DeCompress(zipFile, dest string) error + func EncodeMd5(str string) string + func EncodeSHA256(str string) string + func FileExist(filename string) bool + func FileMd5(path string) (string, error) + func FileSHA256(path string) (string, error) + func FileSize(s int64) string + func GetRandomString(n int, alphabets ...byte) string + func InitInfrastructure(tempPrefix, encodeSecKey, timeFormat string) + func SaveFileToTemp(fileName string, packageFile io.Reader) (string, error) + func Subtract(left interface{}, right interface{}) interface + func TimeSince(t time.Time) template.HTML + func TimeSincePro(then time.Time) string + func VerifyEmail(email string) bool + func VerifyTimeLimitCode(data string, minutes int, code string) bool + type ApiJsonError struct + Message string + Status int + type IntentError struct + Code int + Status int + func MakeIntentError(err interface{}, code ...int) *IntentError + func (self *IntentError) Error() string + type TplName string