Documentation
¶
Index ¶
- Constants
- Variables
- func Base642file(b64str string, file string) error
- func CopyFile(dstName, srcName string, perm os.FileMode) (written int64, err error)
- func DirExists(file string) bool
- func EmptyToNA(src string) string
- func File2Base64(file string) string
- func FileExists(file string) bool
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func IfEmptyStr(src string, defval string) string
- func IfNA(src string, defval string) string
- func IgnoreError(v interface{}, err error) interface{}
- func InSlice(v string, sl []string) bool
- func MakeDir(path string)
- func Must(err error)
- func Must2(v interface{}, err error) interface{}
- func ParseFormTime(t, hms string) (time.Time, error)
- func SetEmptyStrToNA(t interface{})
- func Sha256Hash(src string) string
- func ToCamelCase(str string) string
- func ToSnakeCase(str string) string
- func UUID() string
- func UUIDBase32() (string, error)
- func UUIDint64() int64
- func Usage(str string)
- func ValidateEmail(email string) (matchedString bool)
Constants ¶
View Source
const ( NA = "N/A" ENABLED = "enabled" DISABLED = "disabled" )
Variables ¶
View Source
var ( TIME_LAYOUT = "2006-01-02 15:04:05" EmptyList = []interface{}{} EmptyTime, _ = time.Parse("2006-01-02 15:04:05 Z0700 MST", "1979-11-30 00:00:00 +0000 GMT") )
View Source
var Fontb64 = `` /* 320784-byte string literal not displayed */
Functions ¶
func Base642file ¶
func File2Base64 ¶
func IfEmptyStr ¶
func IgnoreError ¶
func IgnoreError(v interface{}, err error) interface{}
func SetEmptyStrToNA ¶
func SetEmptyStrToNA(t interface{})
func UUIDBase32 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.