Documentation ¶
Index ¶
- func Add(a1, a2 int) int
- func AvoidXSS(theHTML string) string
- func DateFormat(date time.Time, layout string) string
- func IsEven(number int) bool
- func IsOdd(number int) bool
- func MarkdownToHTML(md string) string
- func SetStructByJSON(obj interface{}, mapData map[string]interface{}) error
- func Substring(source string, start, end int) string
- func Truncate(s string, n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetStructByJSON ¶
SetStructByJSON 由json对象生成 struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.