# go-library **Repository Path**: fishjam/go-library ## Basic Information - **Project Name**: go-library - **Description**: No description available - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-22 - **Last Updated**: 2024-09-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go-library [![Go Reference](https://pkg.go.dev/badge/gitee.com/fishjam/go-library.svg)](https://pkg.go.dev/gitee.com/fishjam/go-library) #### 介绍 在学习和工作中整理的一些常见的辅助类和函数,相当于我的 framework #### 功能列表 1. debugutil: 一些为了方便开发和调试的辅助函数 - verifyXxx - 使用 CSTD(Code Self Test Development) 技术方式辅助处理 error(不需要编写大量的 if 来处理error,又不会遗漏 error) 2. flog: 为了在 verify 中使用,定义的简单日志封装接口,一般来说,用户需要使用 `SetLoggerFactory` 进行定制 3. mime/multipart/VirtualWriter: - 类似于内置的 `multipart.Writer`,但是能在不耗费大量内存的前提下同时上传很多(4G+)文件 - 这个类也是本人开源的原因 #### 使用说明 1. `go get gitee.com/fishjam/go-library` ### 注意事项 - 1. 本库中尽量不适用任何第三方的库(比如 log, ut 等), 从而减少导入后的影响. 但由于 go 中没有统一的日志框架,这个想法可能会比较难满足.