Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CmdExec(cmd string) error
- func CmdOutput(cmd string) ([]byte, error)
- func ConfDSN(filepath string, mysqlConfig ...string) (string, error)
- func Decode(jsonStr []byte, obj interface{}) interface{}
- func Encode(obj interface{}) (string, error)
- func HashPassword(password string) (string, error)
- func MD5Encode(password string) string
- func ReadJson(filename string) string
- func ReadSql(path string) (string, error)
- func TimeFormat() string
- func TimeNow()
- func ToTitle(s string) string
- type Json
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func ConfDSN ¶
ConfDSN read mysql config to dsn from config file @Return: dsn string @Params: At least one dbname parameter is required @FileTypes: The following file types are supported: ini yml env
func HashPassword ¶
func TimeFormat ¶
func TimeFormat() string
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.