tool.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package gotool
  2. import (
  3. "github.com/druidcaesa/gotool/array"
  4. "github.com/druidcaesa/gotool/bcrypt"
  5. "github.com/druidcaesa/gotool/captcha"
  6. "github.com/druidcaesa/gotool/compression"
  7. "github.com/druidcaesa/gotool/convert"
  8. "github.com/druidcaesa/gotool/date"
  9. "github.com/druidcaesa/gotool/desensitized"
  10. "github.com/druidcaesa/gotool/id_utils"
  11. "github.com/druidcaesa/gotool/logs"
  12. "github.com/druidcaesa/gotool/openfile"
  13. "github.com/druidcaesa/gotool/page"
  14. "github.com/druidcaesa/gotool/pretty"
  15. "github.com/druidcaesa/gotool/request"
  16. "github.com/druidcaesa/gotool/str"
  17. "github.com/druidcaesa/gotool/tree"
  18. )
  19. // @Title tool
  20. // @Description A simple, semantic and developer-friendly Golang tool development set
  21. // @Page github.com/druidcaesa/gotool
  22. // @Version v0.0.1
  23. // @Author druidcaesa
  24. // @Email hbsjzfynxm@gmail.com
  25. var (
  26. StrArrayUtils array.StrArray //String 数据工具声明
  27. Logs logs.Logs //log日志声明
  28. BcryptUtils bcrypt.BcryptUtil //加密工具声明
  29. DateUtil date.Date //时间操作
  30. StrUtils str.StrUtils //字符串操作
  31. HttpUtils request.Request //http工具
  32. ConvertUtils convert.Convert //公历转农历相关操作
  33. PageUtils page.Page //分页插件
  34. IdUtils id_utils.IdUtils //id生成工具
  35. ZipUtils compression.ZipUtils //压缩和解压缩工具
  36. FileUtils openfile.FileUtils //IO操作工具
  37. CaptchaUtils captcha.Captcha //验证码工具
  38. DesensitizedUtils desensitized.Desensitized //敏感数据脱敏
  39. TreeUtils tree.Tree //菜单树结构化工具
  40. PrettyUtils pretty.PrettyUtils //JSON打印格式化工具
  41. )