Documentation
¶
Index ¶
- func CheckErr(err error)
- func CheckTxErr(err error, tx *sql.Tx)
- func FilterHideCates(cates []types.Catelog) []types.Catelog
- func FilterHideTools(tools []types.Tool, cates []types.Catelog) []types.Tool
- func GenerateId() int
- func GetImgBase64FromUrl(url string) string
- func GetMIME(suffix string) string
- func GetSuffixFromUrl(url string) string
- func In(target string, str_array []string) bool
- func IsLogin(c *gin.Context) bool
- func ParseJWT(tokenString string) (*jwt.Token, error)
- func PathExistsOrCreate(path string)
- func RandomJWTKey() string
- func SignJWT(user types.User) (string, error)
- func SignJWTForAPI(tokenName string, tokenId int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTxErr ¶
func GenerateId ¶
func GenerateId() int
func GetImgBase64FromUrl ¶
func GetSuffixFromUrl ¶
func PathExistsOrCreate ¶
func PathExistsOrCreate(path string)
func RandomJWTKey ¶
func RandomJWTKey() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.