Documentation
¶
Index ¶
- func B64UrlDecode(m string) string
- func B64UrlEncode(m string) string
- func DefaultPassword() string
- func FileNameSplit(fileName string) (string, string)
- func FileSize2MB(size int64) string
- func GetBasePath(path string) string
- func GetRequestIp(r *http.Request) string
- func GetRequestSession(r *http.Request) (*models.Session, error)
- func IsExist(path string) bool
- func IsTheRole(data map[interface{}]interface{})
- func MD5(str string) string
- func MD5Bytes(str string) []byte
- func NewUUID() string
- func NowTimeString() string
- func Render(w http.ResponseWriter, tplName string, data interface{})
- func S2T(s string) time.Time
- func SetSessionCookie(w http.ResponseWriter, val string, age bool)
- func SetUserNameCookie(w http.ResponseWriter, val string, age bool)
- func T2S(t time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func B64UrlDecode ¶
func B64UrlEncode ¶
func DefaultPassword ¶
func DefaultPassword() string
func FileNameSplit ¶
func FileSize2MB ¶
func GetBasePath ¶
func GetRequestIp ¶
func NowTimeString ¶
func NowTimeString() string
func Render ¶
func Render(w http.ResponseWriter, tplName string, data interface{})
func SetSessionCookie ¶
func SetSessionCookie(w http.ResponseWriter, val string, age bool)
func SetUserNameCookie ¶
func SetUserNameCookie(w http.ResponseWriter, val string, age bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.