Documentation ¶
Index ¶
- Variables
- func Body(c echo.Context) (*gjson.Result, error)
- func CreateDir(dirs ...string)
- func Decryption(str string, keys ...string) (string, error)
- func Encryption(str string, keys ...string) (string, error)
- func ExcelImport(url string) ([][]string, error)
- func FileMd5(data []byte) string
- func GetTreeNode(data any, id uint, idField string, sonField string) map[string]any
- func GetUuid() (string, error)
- func HashEncode(content string) string
- func HashVerify(hashedPwd string, password string) bool
- func HumanFileSize(fileSize int64) (size string)
- func InTimeSpan(start, end, check time.Time, includeStart, includeEnd bool) bool
- func IpParser(ip string) (string, error)
- func IsExist(f string) bool
- func LcFirst(str string) string
- func Md5(text string) string
- func PageLimit(page int, total int, limit int) (int, int)
- func Qs(c echo.Context) (*gjson.Result, error)
- func RandString(len int) string
- func Round(val float64, precision int) float64
- func SliceToTree(data []map[string]any, idField string, pidField string, sonField string) []map[string]any
- func UaParser(ua string) (*uaparser.Client, error)
- func UcFirst(str string) string
- func UnzipFiles(filename, path string) error
- func VisitIncrement(ctx echo.Context, hasType string, hasID uint, driver string, path string) error
- func ZipFiles(path, filename string, files []string, rootPath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DbFs embed.FS
View Source
var IpSearch *xdb.Searcher
View Source
var UapParser *uaparser.Parser
Functions ¶
func ExcelImport ¶
func GetTreeNode ¶
func HashVerify ¶
HashVerify Ciphertext Verification
func HumanFileSize ¶
HumanFileSize Format File Size
func InTimeSpan ¶
InTimeSpan Range Time Query
func SliceToTree ¶
func UnzipFiles ¶
func VisitIncrement ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.