github.com/sandwich-go/boost@v1.3.29/README.md (about) 1 # boost 2 3 `boost` 工具箱 4 5 - `geom` [地理位置](https://github.com/sandwich-go/boost/tree/main/geom/README.md) 6 - `httputil` [HTTP工具](https://github.com/sandwich-go/boost/tree/main/httputil/README.md) 7 - `middleware` 中间件 8 - `misc` [杂项工具](https://github.com/sandwich-go/boost/tree/main/misc/README.md) 9 - `module` [Module工具](https://github.com/sandwich-go/boost/tree/main/module/README.md) 10 - `plugin` 插件 11 - `retry` [重试](https://github.com/sandwich-go/boost/tree/main/retry/README.md) 12 - `singleflight` [SingleFlight](https://github.com/sandwich-go/boost/tree/main/singleflight/README.md) 13 - `types` [扩展的数据类型](https://github.com/sandwich-go/boost/tree/main/types/README.md) 14 - `validator` [校验器](https://github.com/sandwich-go/boost/tree/main/validator/README.md) 15 - `version` [程序版本](https://github.com/sandwich-go/boost/tree/main/version/README.md) 16 - `xcmd` [命令行/ENV参数](https://github.com/sandwich-go/boost/tree/main/xcmd/README.md) 17 - `xcompress` [解压缩器](https://github.com/sandwich-go/boost/tree/main/xcompress/README.md) 18 - `xcontainer` [容器](https://github.com/sandwich-go/boost/tree/main/xcontainer/README.md) 19 - `xconv` [内置类型转换辅助工具](https://github.com/sandwich-go/boost/tree/main/xconv/README.md) 20 - `xcopy` [深拷贝](https://github.com/sandwich-go/boost/tree/main/xcopy/README.md) 21 - `xcrypto` [加密](https://github.com/sandwich-go/boost/tree/main/xcrypto/README.md) 22 - `xchan` [Unbounded chan with ring buffer](https://github.com/sandwich-go/boost/tree/main/xchan/README.md) 23 - `xdebug` [Debug](https://github.com/sandwich-go/boost/tree/main/xdebug/README.md) 24 - `xencoding` [编码解码器](https://github.com/sandwich-go/boost/tree/main/xencoding/README.md) 25 - `xerror` [error wrapper](https://github.com/sandwich-go/boost/tree/main/xerror/README.md) 26 - `xhash` [hash算法](https://github.com/sandwich-go/boost/tree/main/xhash/README.md) 27 - `xio` [异步io](https://github.com/sandwich-go/boost/tree/main/xio/README.md) 28 - `xip` [ip/port辅助函数](https://github.com/sandwich-go/boost/tree/main/xip/README.md) 29 - `xmap` [map辅助函数](https://github.com/sandwich-go/boost/tree/main/xmap/README.md) 30 - `xmath` [math辅助函数](https://github.com/sandwich-go/boost/tree/main/xmath/README.md) 31 - `xos` [系统辅助函数](https://github.com/sandwich-go/boost/tree/main/xos/README.md) 32 - `xpanic` [panic辅助函数](https://github.com/sandwich-go/boost/tree/main/xpanic/README.md) 33 - `xpool` [pool辅助函数](https://github.com/sandwich-go/boost/tree/main/xpool/README.md) 34 - `xproc` [command辅助函数](https://github.com/sandwich-go/boost/tree/main/xproc/README.md) 35 - `xrand` [随机辅助函数](https://github.com/sandwich-go/boost/tree/main/xrand/README.md) 36 - `xslice` [切片辅助函数](https://github.com/sandwich-go/boost/tree/main/xslice/README.md) 37 - `xstrings` [字符串辅助函数](https://github.com/sandwich-go/boost/tree/main/xstrings/README.md) 38 - `xsync` [同步辅助函数](https://github.com/sandwich-go/boost/tree/main/xsync/README.md) 39 - `xtest` 40 - `xtime` [time辅助函数](https://github.com/sandwich-go/boost/tree/main/xtime/README.md) 41 - `z` [编译期辅助函数](https://github.com/sandwich-go/boost/tree/main/z/README.md) 42 43 # 设置 `logger` 44 通过 `boost.InstallLogger` 来设置自定义的 `logger` 45 46 自定义的 `logger` 需要实现以下接口 47 48 ```go 49 type Logger interface { 50 Debug(string) 51 Info(string) 52 Warn(string) 53 Error(string) 54 Fatal(string) 55 } 56 ```