Documentation ¶
Index ¶
- func FormatDate(date string, separator string) string
- func GenerateID(name, date string) string
- func GetDate(t time.Time) string
- func GetToday() string
- func GetWeekday(date string) (string, error)
- func GetYesterday() string
- func PrintPretty(v interface{}, mark string) (err error)
- func SplitDate(date string) (yyyy, mm, dd string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
FormatDate format date with separator 20160902 -> 2016-09-02
func GetWeekday ¶
GetWeekday returns '一' if time is Monday
func PrintPretty ¶
PrintPretty prints struct v as format json
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.