{"id":13600389,"url":"https://github.com/q191201771/naza","last_synced_at":"2025-05-14T19:07:46.528Z","repository":{"id":37819527,"uuid":"204624989","full_name":"q191201771/naza","owner":"q191201771","description":"🍀 Golang basic library. || Go语言基础库","archived":false,"fork":false,"pushed_at":"2025-04-10T11:42:17.000Z","size":468,"stargazers_count":535,"open_issues_count":2,"forks_count":111,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-14T06:49:11.374Z","etag":null,"topics":["assert","atomic","big-endian","bitrate","bits","buffer-pool","circularqueue","consistent-hashing","defer-task","deferred-tasks","go-utils","golang","goroutine-pool","leaky-bucket","log","md5","mock","ratelimit","reflect","token-bucket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/q191201771.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-27T05:17:35.000Z","updated_at":"2025-04-10T11:42:03.000Z","dependencies_parsed_at":"2023-07-15T23:02:36.711Z","dependency_job_id":"4dddeb69-a893-4788-93c7-4c8de3815848","html_url":"https://github.com/q191201771/naza","commit_stats":null,"previous_names":["q191201771/nezha"],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q191201771%2Fnaza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q191201771%2Fnaza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q191201771%2Fnaza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q191201771%2Fnaza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/q191201771","download_url":"https://codeload.github.com/q191201771/naza/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254209859,"owners_count":22032897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assert","atomic","big-endian","bitrate","bits","buffer-pool","circularqueue","consistent-hashing","defer-task","deferred-tasks","go-utils","golang","goroutine-pool","leaky-bucket","log","md5","mock","ratelimit","reflect","token-bucket"],"created_at":"2024-08-01T18:00:38.083Z","updated_at":"2025-05-14T19:07:45.249Z","avatar_url":"https://github.com/q191201771.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library"],"sub_categories":["开发辅助包","Development Aid Package"],"readme":"\u003cp align=\"center\"\u003e\n\u003cbr\u003e\nGo语言基础库\n\u003cbr\u003e\u003cbr\u003e\n\u003ca title=\"Release\" target=\"_blank\" href=\"https://github.com/q191201771/naza/tags\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/q191201771/naza.svg?label=release\"\u003e\u003c/a\u003e\n\u003ca title=\"CI\" target=\"_blank\" href=\"https://github.com/q191201771/naza/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/q191201771/naza/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n\u003ca title=\"codecov\" target=\"_blank\" href=\"https://codecov.io/gh/q191201771/naza\"\u003e\u003cimg src=\"https://codecov.io/gh/q191201771/naza/branch/master/graph/badge.svg?token=9wWcoiktZl\"\u003e\u003c/a\u003e\n\u003ca title=\"goreportcard\" target=\"_blank\" href=\"https://goreportcard.com/report/github.com/q191201771/naza\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/q191201771/naza\"\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003ca title=\"codeline\" target=\"_blank\" href=\"https://github.com/q191201771/naza\"\u003e\u003cimg src=\"https://sloc.xyz/github/q191201771/naza/?category=code\"\u003e\u003c/a\u003e\n\u003ca title=\"license\" target=\"_blank\" href=\"https://github.com/q191201771/naza/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca title=\"lastcommit\" target=\"_blank\" href=\"https://github.com/q191201771/naza/commits/master\"\u003e\u003cimg src=\"https://img.shields.io/github/commit-activity/m/q191201771/naza.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca title=\"commitactivity\" target=\"_blank\" href=\"https://github.com/q191201771/naza/graphs/commit-activity\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/q191201771/naza.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003ca title=\"language\" target=\"_blank\" href=\"https://github.com/q191201771/naza\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/count/q191201771/naza.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca title=\"toplanguage\" target=\"_blank\" href=\"https://github.com/q191201771/naza\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/top/q191201771/naza.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca title=\"godoc\" target=\"_blank\" href=\"https://godoc.org/github.com/q191201771/naza\"\u003e\u003cimg src=\"http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n---\n\n#### 工程目录说明\n\n```\npkg/                     ...... 源码包\n    |-- nazalog/         ...... 日志库\n    |-- nazabits/        ...... 流式位操作\n    |-- defertaskthread  ...... 执行延时任务\n    |-- connection/      ...... 对net.Conn接口的二次封装\n    |-- taskpool/        ...... 非阻塞协程池，协程数量可动态增长，可配置最大协程并发数量，可手动释放空闲的协程\n    |-- nazajson/        ...... json操作\n\n    |-- nazanet/         ...... socket操作相关\n    |-- assert/          ...... 提供了单元测试时的断言功能，减少一些模板代码\n    |-- bele/            ...... 大小端转换操作\n    |-- bininfo/         ...... 将编译时源码的git版本信息（当前commit log的sha值和commit message），编译时间，Go版本，平台打入程序中\n    |-- circularqueue    ...... 底层基于切片实现的固定容量大小的FIFO的环形队列\n    |-- dataops/         ...... 数据处理\n    |-- fake/            ...... 实现一些常用的接口，hook一些不方便测试的代码\n    |-- filebatch/       ...... 文件批处理操作\n    |-- filesystemlayer/ ...... 对文件操作的封装，可以使用内存作为磁盘使用\n    |-- mock/            ...... 模拟一些标准库中的常用接口，方便测试\n    |-- nazaatomic/      ...... 原子操作\n    |-- nazabytes/       ...... 字节切片，内存块操作\n    |-- nazacolor/       ...... 控制台打印颜色相关\n    |-- nazaerrors/      ...... error相关\n    |-- nazahttp/        ...... http操作\n    |-- nazamd5/         ...... md5操作\n    |-- nazareflect/     ...... 利用反射做的一些操作\n    |-- nazastring/      ...... string和[]byte相关的操作\n    |-- unique/          ...... 对象唯一ID\n    |-- nazasync/        ...... 对sync的封装，比如定位sync.Mutex死锁\n    |-- chartbar/        ...... ascii柱状图\n    |-- bitrate/         ...... 计算带宽\n    |-- ratelimit/       ...... 限流器，令牌桶，漏桶\n    |-- lru/             ...... LRU缓存\n    |-- consistenthash/  ...... 一致性哈希\n    |-- crypto/          ...... 加解密操作\n    |-- slicebytepool/   ...... []byte内存池\n    |-- snowflake/       ...... 分布式唯一性ID生成器\nplayground/              ...... Go实验代码片段\ndemo/                    ...... 示例相关的代码\n```\n\n#### 依赖\n\n无任何第三方依赖\n\n#### 联系我\n\n欢迎扫码加我微信，进行技术交流或扯淡。\n\n\u003cimg src=\"https://pengrl.com/images/yoko_vx.jpeg\" width=\"180\" height=\"180\" /\u003e\n\n#### 项目名 naza 由来\n\n本仓库主要用于存放我自己写的一些 Go 基础库代码。目前主要服务于我的另一个项目： [lal](https:////github.com/q191201771/lal)\n\nnaza 即哪吒（正确拼音为 nezha，我女儿发音读作 naza，少一个字母，挺好~），希望本仓库以后能像三头六臂，有多种武器的哪吒一样，为我提供一个趁手的工具箱。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq191201771%2Fnaza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fq191201771%2Fnaza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq191201771%2Fnaza/lists"}