Documentation ¶
Index ¶
- func Contains(slice []string, sub string) bool
- func Encrypt(data string, salt string) (string, error)
- func FormatDate(t time.Time) string
- func LoadTemplates(templatesDir string) multitemplate.Render
- func NewStore(cookieStore *sessions.CookieStore) ginsessions.Store
- func RandomString(length int) string
- func StructToMap(inter interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTemplates ¶
func LoadTemplates(templatesDir string) multitemplate.Render
LoadTemplates 加载资源文件
func NewStore ¶
func NewStore(cookieStore *sessions.CookieStore) ginsessions.Store
func StructToMap ¶
func StructToMap(inter interface{}) map[string]interface{}
StructToMap will change struct to map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.