Documentation ¶
Index ¶
- func DateInt64(ti int64, format string) string
- func DateString(ts string, format string) string
- func DateTime(t time.Time, format string) string
- func FileSize(size int64) string
- func Gravatar(email string, size string) string
- func Html2str(html string) string
- func IsASCII(str string) bool
- func IsContain(str string, contain string) bool
- func IsDir(path string) bool
- func IsEmail(str string) bool
- func IsEmptyString(str string) bool
- func IsEnglish(str string) bool
- func IsFile(path string) bool
- func IsLonger(str string, length int) bool
- func IsShorter(str string, length int) bool
- func IsURL(str string) bool
- func Markdown2Html(text string) string
- func Markdown2HtmlTemplate(text string) template.HTML
- func Now() int64
- func Sha1(raw string) string
- func SortInt(s [][2]int)
- type Pager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateString ¶
Format unix time string to string
func DateTime ¶
Format time.Time struct to string MM - month - 01 M - month - 1, single bit DD - day - 02 D - day 2 YYYY - year - 2006 YY - year - 06 HH - 24 hours - 03 H - 24 hours - 3 hh - 12 hours - 03 h - 12 hours - 3 mm - minute - 04 m - minute - 4 ss - second - 05 s - second = 5
func IsEmptyString ¶
func Markdown2Html ¶ added in v0.1.5
func Markdown2HtmlTemplate ¶ added in v0.1.5
Types ¶
Click to show internal directories.
Click to hide internal directories.