Documentation ¶
Index ¶
- func CopyDir(source string, dest string) (err error)
- func CopyFile(source string, dest string) (err error)
- func DateFormat(t *time.Time, format string) string
- func FileSize(size int64) string
- func Gravatar(email string, size string) string
- func Html2Excerpt(html string, length int) 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() *time.Time
- func ReadMemStats() *monitorStats
- func Sha1(raw string) string
- func SubString(str string, begin, length int) (substr string)
- type Pager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
Recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist.
func Html2Excerpt ¶
func IsEmptyString ¶
func Markdown2Html ¶
func Markdown2HtmlTemplate ¶
func ReadMemStats ¶
func ReadMemStats() *monitorStats
Types ¶
Click to show internal directories.
Click to hide internal directories.