Documentation ¶
Index ¶
- func AvoidXSS(theHTML string) string
- func GetTodayTime() time.Time
- func GetTodayYM(sep string) string
- func GetTodayYMD(sep string) string
- func GetTomorrowYMD(sep string) string
- func GetYesterdayTime() time.Time
- func GetYesterdayYMD(sep string) string
- func LuosimaoVerify(reqURL, apiKey, response string) error
- func MarkdownToHTML(md string) string
- func RelativeURLToAbsoluteURL(curURL string, baseURL string) (string, error)
- func SetStructByJSON(obj interface{}, mapData map[string]interface{}) error
- func StrToIntMonth(month string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetYesterdayYMD ¶
GetYesterdayYMD 得到以sep为分隔符的年、月、日字符串(昨天)
func LuosimaoVerify ¶
LuosimaoVerify 对前端的验证码进行验证
func RelativeURLToAbsoluteURL ¶
RelativeURLToAbsoluteURL 相对URL转绝对URL
func SetStructByJSON ¶
SetStructByJSON 由json对象生成 struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.