Skip to content
/ naza Public
forked from q191201771/naza

🍀 Go basic library. || Go语言基础库。包含日志,[]byte 内存池,断言,string,字节切片,一致性哈希,版本信息,大小端,原子操作,json,协程池,整型数组压缩,限速器,带宽计算,网络连接对象,文件批处理,对象唯一ID,md5,mock等内容。

License

Notifications You must be signed in to change notification settings

asdlei99/naza

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Go语言基础库





        


工程目录说明

pkg/                    ...... 源码包
    |-- nazalog/        ...... 日志库
    |-- slicebytepool/  ...... []byte 内存池
    |-- assert/         ...... 提供了单元测试时的断言功能,减少一些模板代码
    |-- nazastring/     ...... string 和 []byte 相关的操作
    |-- consistenthash/ ...... 一致性哈希
    |-- bininfo/        ...... 将编译时源码的 git 版本信息(当前 commit log 的 sha 值和 commit message),编译时间,Go 版本,平台打入程序中
    |-- bele/           ...... 提供了大小端的转换操作
    |-- nazaatomic/     ...... 原子操作
    |-- nazajson/       ...... json 操作
    |-- taskpool/       ...... 协程池
    |-- connection/     ...... 对 net.Conn 接口的二次封装
    |-- filebatch/      ...... 文件批处理操作
    |-- nazamd5/        ...... md5 操作
    |-- bitrate/        ...... 计算带宽
    |-- ratelimit/      ...... 限流器,令牌桶
    |-- ic/             ...... 将整型切片压缩成二进制字节切片
    |-- unique/         ...... 对象唯一 ID
    |-- fake/           ...... 实现一些常用的接口,辅助测试其它代码
demo/                   ...... 示例相关的代码
bin/                    ...... 可执行文件编译输出目录

依赖

无任何第三方依赖

项目名 naza 由来

本仓库主要用于存放我自己写的一些 Go 基础库代码。目前主要服务于我的另一个项目: lal

naza 即哪吒(正确拼音为 nezha,我女儿发音读作 naza,少一个字母,挺好~),希望本仓库以后能像三头六臂,有多种武器的哪吒一样,为我提供一个趁手的工具箱。

相关文档

联系我

欢迎扫码加我微信,进行技术交流或扯淡。

About

🍀 Go basic library. || Go语言基础库。包含日志,[]byte 内存池,断言,string,字节切片,一致性哈希,版本信息,大小端,原子操作,json,协程池,整型数组压缩,限速器,带宽计算,网络连接对象,文件批处理,对象唯一ID,md5,mock等内容。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.3%
  • Shell 2.7%