You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
naza/README.md

80 lines
5.4 KiB
Markdown

6 years ago
<p align="center">
<br>
Go语言基础库
<br><br>
Squashed commit of the following: commit 721f5df77672d904a8926433d33a1546d6853724 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 11:09:38 2019 +0800 nezha -> naza commit 94cbffe32a567ac3b11583675900cd9ac1561149 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:44:23 2019 +0800 rename package log -> package nazalog commit db8122c69d18cd6b16dd2853207f0397373fa863 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:26:00 2019 +0800 package connection: bugfix make exitChan commit 083db929f6341a35c170e023e5d4a8aa8386b87d Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:06:00 2019 +0800 rename package nzjson -> nazajson commit e01dda7218b4390aa5b9e8280be109761c8fc576 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 09:59:35 2019 +0800 new package: nazajson commit 09421c2b985e610a5940bf3c8a2e6bd3b4838274 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 12:04:21 2019 +0800 1. package connection & package log: Config -> Option 2. package log: IsToStdOut default -> ture, ShortFileFlag default -> true commit 1052ef0ead7c4ad2c8acfdcccefe186d8f743d51 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:13:57 2019 +0800 package connection: rename wmsg struct -> wMsg commit a450ed21b008b10898d363c4a58a04662ac6a283 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:11:11 2019 +0800 package connection: erase func Printf commit 810d41a83beb54110461c288d7078a9c08b16b5b Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:06:57 2019 +0800 package log: mkdir 777 -> 644 commit e087bc8fe70f1ba619d87ca77356b198f117cd9c Merge: f117d4b d6006a3 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:21:05 2019 +0800 Merge branch 'master' into dev commit f117d4b20e19812aa9f0aa618daa60a73169e486 Merge: f2f631e 059da41 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:12:38 2019 +0800 Merge branch 'master' into dev commit f2f631eb21e1a99f1b40470dc517be97f36d74fd Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 19:37:31 2019 +0800 test.sh 只在开发机 macos 下执行 gofmt 检查 commit fb692804a04147c96bd17cd262988595bad08d3d Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 17:26:36 2019 +0800 1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒 commit b2c187b59f30c0e1f7c2d2ac867784a39aefa445 Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 10:56:04 2019 +0800 1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log commit a9b2fe8f863cb0b28189a257246703351a604b02 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 16:42:09 2019 +0800 package connection: bugfix func Done commit 5b13acb3d83860cf98cc8b02358f97a7fc514ffb Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:59:02 2019 +0800 package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close commit 4beaa82c509cc44ddb0ecda91674191e715b83d8 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:44:37 2019 +0800 package connection: 增加 Done 方法 commit 0f3da700ec8cb90068dda7a8f091aefd9076be07 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 14:05:39 2019 +0800 package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法 commit d154645a44a9e66b3aa2b655571d566ce28ea264 Author: q191201771 <191201771@qq.com> Date: Mon Sep 23 19:48:08 2019 +0800 package connection: Flush before Close
5 years ago
<a title="TravisCI" target="_blank" href="https://www.travis-ci.org/q191201771/naza"><img src="https://www.travis-ci.org/q191201771/naza.svg?branch=master"></a>
<a title="codecov" target="_blank" href="https://codecov.io/gh/q191201771/naza"><img src="https://codecov.io/gh/q191201771/naza/branch/master/graph/badge.svg?style=flat-square"></a>
<a title="goreportcard" target="_blank" href="https://goreportcard.com/report/github.com/q191201771/naza"><img src="https://goreportcard.com/badge/github.com/q191201771/naza?style=flat-square"></a>
6 years ago
<br>
<a title="codeline" target="_blank" href="https://github.com/q191201771/naza"><img src="https://sloc.xyz/github/q191201771/naza/?category=code"></a>
Squashed commit of the following: commit 721f5df77672d904a8926433d33a1546d6853724 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 11:09:38 2019 +0800 nezha -> naza commit 94cbffe32a567ac3b11583675900cd9ac1561149 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:44:23 2019 +0800 rename package log -> package nazalog commit db8122c69d18cd6b16dd2853207f0397373fa863 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:26:00 2019 +0800 package connection: bugfix make exitChan commit 083db929f6341a35c170e023e5d4a8aa8386b87d Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:06:00 2019 +0800 rename package nzjson -> nazajson commit e01dda7218b4390aa5b9e8280be109761c8fc576 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 09:59:35 2019 +0800 new package: nazajson commit 09421c2b985e610a5940bf3c8a2e6bd3b4838274 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 12:04:21 2019 +0800 1. package connection & package log: Config -> Option 2. package log: IsToStdOut default -> ture, ShortFileFlag default -> true commit 1052ef0ead7c4ad2c8acfdcccefe186d8f743d51 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:13:57 2019 +0800 package connection: rename wmsg struct -> wMsg commit a450ed21b008b10898d363c4a58a04662ac6a283 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:11:11 2019 +0800 package connection: erase func Printf commit 810d41a83beb54110461c288d7078a9c08b16b5b Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:06:57 2019 +0800 package log: mkdir 777 -> 644 commit e087bc8fe70f1ba619d87ca77356b198f117cd9c Merge: f117d4b d6006a3 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:21:05 2019 +0800 Merge branch 'master' into dev commit f117d4b20e19812aa9f0aa618daa60a73169e486 Merge: f2f631e 059da41 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:12:38 2019 +0800 Merge branch 'master' into dev commit f2f631eb21e1a99f1b40470dc517be97f36d74fd Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 19:37:31 2019 +0800 test.sh 只在开发机 macos 下执行 gofmt 检查 commit fb692804a04147c96bd17cd262988595bad08d3d Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 17:26:36 2019 +0800 1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒 commit b2c187b59f30c0e1f7c2d2ac867784a39aefa445 Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 10:56:04 2019 +0800 1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log commit a9b2fe8f863cb0b28189a257246703351a604b02 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 16:42:09 2019 +0800 package connection: bugfix func Done commit 5b13acb3d83860cf98cc8b02358f97a7fc514ffb Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:59:02 2019 +0800 package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close commit 4beaa82c509cc44ddb0ecda91674191e715b83d8 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:44:37 2019 +0800 package connection: 增加 Done 方法 commit 0f3da700ec8cb90068dda7a8f091aefd9076be07 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 14:05:39 2019 +0800 package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法 commit d154645a44a9e66b3aa2b655571d566ce28ea264 Author: q191201771 <191201771@qq.com> Date: Mon Sep 23 19:48:08 2019 +0800 package connection: Flush before Close
5 years ago
<a title="license" target="_blank" href="https://github.com/q191201771/naza/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a>
<a title="lastcommit" target="_blank" href="https://github.com/q191201771/naza/commits/master"><img src="https://img.shields.io/github/commit-activity/m/q191201771/naza.svg?style=flat-square"></a>
<a title="commitactivity" target="_blank" href="https://github.com/q191201771/naza/graphs/commit-activity"><img src="https://img.shields.io/github/last-commit/q191201771/naza.svg?style=flat-square"></a>
6 years ago
<br>
Squashed commit of the following: commit 721f5df77672d904a8926433d33a1546d6853724 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 11:09:38 2019 +0800 nezha -> naza commit 94cbffe32a567ac3b11583675900cd9ac1561149 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:44:23 2019 +0800 rename package log -> package nazalog commit db8122c69d18cd6b16dd2853207f0397373fa863 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:26:00 2019 +0800 package connection: bugfix make exitChan commit 083db929f6341a35c170e023e5d4a8aa8386b87d Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:06:00 2019 +0800 rename package nzjson -> nazajson commit e01dda7218b4390aa5b9e8280be109761c8fc576 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 09:59:35 2019 +0800 new package: nazajson commit 09421c2b985e610a5940bf3c8a2e6bd3b4838274 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 12:04:21 2019 +0800 1. package connection & package log: Config -> Option 2. package log: IsToStdOut default -> ture, ShortFileFlag default -> true commit 1052ef0ead7c4ad2c8acfdcccefe186d8f743d51 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:13:57 2019 +0800 package connection: rename wmsg struct -> wMsg commit a450ed21b008b10898d363c4a58a04662ac6a283 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:11:11 2019 +0800 package connection: erase func Printf commit 810d41a83beb54110461c288d7078a9c08b16b5b Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:06:57 2019 +0800 package log: mkdir 777 -> 644 commit e087bc8fe70f1ba619d87ca77356b198f117cd9c Merge: f117d4b d6006a3 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:21:05 2019 +0800 Merge branch 'master' into dev commit f117d4b20e19812aa9f0aa618daa60a73169e486 Merge: f2f631e 059da41 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:12:38 2019 +0800 Merge branch 'master' into dev commit f2f631eb21e1a99f1b40470dc517be97f36d74fd Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 19:37:31 2019 +0800 test.sh 只在开发机 macos 下执行 gofmt 检查 commit fb692804a04147c96bd17cd262988595bad08d3d Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 17:26:36 2019 +0800 1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒 commit b2c187b59f30c0e1f7c2d2ac867784a39aefa445 Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 10:56:04 2019 +0800 1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log commit a9b2fe8f863cb0b28189a257246703351a604b02 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 16:42:09 2019 +0800 package connection: bugfix func Done commit 5b13acb3d83860cf98cc8b02358f97a7fc514ffb Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:59:02 2019 +0800 package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close commit 4beaa82c509cc44ddb0ecda91674191e715b83d8 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:44:37 2019 +0800 package connection: 增加 Done 方法 commit 0f3da700ec8cb90068dda7a8f091aefd9076be07 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 14:05:39 2019 +0800 package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法 commit d154645a44a9e66b3aa2b655571d566ce28ea264 Author: q191201771 <191201771@qq.com> Date: Mon Sep 23 19:48:08 2019 +0800 package connection: Flush before Close
5 years ago
<a title="pr" target="_blank" href="https://github.com/q191201771/naza/pulls"><img src="https://img.shields.io/github/issues-pr-closed/q191201771/naza.svg?style=flat-square&color=FF9966"></a>
<a title="hits" target="_blank" href="https://github.com/q191201771/naza"><img src="https://hits.b3log.org/q191201771/naza.svg?style=flat-square"></a>
<a title="language" target="_blank" href="https://github.com/q191201771/naza"><img src="https://img.shields.io/github/languages/count/q191201771/naza.svg?style=flat-square"></a>
<a title="toplanguage" target="_blank" href="https://github.com/q191201771/naza"><img src="https://img.shields.io/github/languages/top/q191201771/naza.svg?style=flat-square"></a>
<a title="godoc" target="_blank" href="https://godoc.org/github.com/q191201771/naza"><img src="http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square"></a>
6 years ago
<br><br>
Squashed commit of the following: commit 721f5df77672d904a8926433d33a1546d6853724 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 11:09:38 2019 +0800 nezha -> naza commit 94cbffe32a567ac3b11583675900cd9ac1561149 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:44:23 2019 +0800 rename package log -> package nazalog commit db8122c69d18cd6b16dd2853207f0397373fa863 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:26:00 2019 +0800 package connection: bugfix make exitChan commit 083db929f6341a35c170e023e5d4a8aa8386b87d Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:06:00 2019 +0800 rename package nzjson -> nazajson commit e01dda7218b4390aa5b9e8280be109761c8fc576 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 09:59:35 2019 +0800 new package: nazajson commit 09421c2b985e610a5940bf3c8a2e6bd3b4838274 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 12:04:21 2019 +0800 1. package connection & package log: Config -> Option 2. package log: IsToStdOut default -> ture, ShortFileFlag default -> true commit 1052ef0ead7c4ad2c8acfdcccefe186d8f743d51 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:13:57 2019 +0800 package connection: rename wmsg struct -> wMsg commit a450ed21b008b10898d363c4a58a04662ac6a283 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:11:11 2019 +0800 package connection: erase func Printf commit 810d41a83beb54110461c288d7078a9c08b16b5b Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:06:57 2019 +0800 package log: mkdir 777 -> 644 commit e087bc8fe70f1ba619d87ca77356b198f117cd9c Merge: f117d4b d6006a3 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:21:05 2019 +0800 Merge branch 'master' into dev commit f117d4b20e19812aa9f0aa618daa60a73169e486 Merge: f2f631e 059da41 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:12:38 2019 +0800 Merge branch 'master' into dev commit f2f631eb21e1a99f1b40470dc517be97f36d74fd Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 19:37:31 2019 +0800 test.sh 只在开发机 macos 下执行 gofmt 检查 commit fb692804a04147c96bd17cd262988595bad08d3d Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 17:26:36 2019 +0800 1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒 commit b2c187b59f30c0e1f7c2d2ac867784a39aefa445 Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 10:56:04 2019 +0800 1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log commit a9b2fe8f863cb0b28189a257246703351a604b02 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 16:42:09 2019 +0800 package connection: bugfix func Done commit 5b13acb3d83860cf98cc8b02358f97a7fc514ffb Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:59:02 2019 +0800 package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close commit 4beaa82c509cc44ddb0ecda91674191e715b83d8 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:44:37 2019 +0800 package connection: 增加 Done 方法 commit 0f3da700ec8cb90068dda7a8f091aefd9076be07 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 14:05:39 2019 +0800 package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法 commit d154645a44a9e66b3aa2b655571d566ce28ea264 Author: q191201771 <191201771@qq.com> Date: Mon Sep 23 19:48:08 2019 +0800 package connection: Flush before Close
5 years ago
<a title="watcher" target="_blank" href="https://github.com/q191201771/naza/watchers"><img src="https://img.shields.io/github/watchers/q191201771/naza.svg?label=Watchers&style=social"></a>&nbsp;&nbsp;
<a title="star" target="_blank" href="https://github.com/q191201771/naza/stargazers"><img src="https://img.shields.io/github/stars/q191201771/naza.svg?label=Stars&style=social"></a>&nbsp;&nbsp;
<a title="fork" target="_blank" href="https://github.com/q191201771/naza/network/members"><img src="https://img.shields.io/github/forks/q191201771/naza.svg?label=Forks&style=social"></a>&nbsp;&nbsp;
6 years ago
</p>
---
6 years ago
#### 工程目录说明
```
pkg/ ...... 源码包
|-- bininfo/ ...... 将编译时源码的 git 版本信息(当前 commit log 的 sha 值和 commit message编译时间Go 版本,平台打入程序中
5 years ago
|-- snowflake/ ...... 分布式唯一性 ID 生成器
|-- bitrate/ ...... 计算带宽
|-- consistenthash/ ...... 一致性哈希
|-- nazalog/ ...... 日志库
|-- slicebytepool/ ...... []byte 内存池
|-- assert/ ...... 提供了单元测试时的断言功能,减少一些模板代码
|-- nazastring/ ...... string 和 []byte 相关的操作
|-- bele/ ...... 提供了大小端的转换操作
|-- nazaatomic/ ...... 原子操作
|-- nazajson/ ...... json 操作
|-- taskpool/ ...... 协程池
|-- connection/ ...... 对 net.Conn 接口的二次封装
|-- filebatch/ ...... 文件批处理操作
|-- nazamd5/ ...... md5 操作
|-- ratelimit/ ...... 限流器,令牌桶
5 years ago
|-- ic/ ...... 将整型切片压缩成二进制字节切片
|-- unique/ ...... 对象唯一 ID
|-- fake/ ...... stub和mock相关实现一些常用的接口辅助测试其它代码
playground/ ...... Go实验代码片段
demo/ ...... 示例相关的代码
bin/ ...... 可执行文件编译输出目录
6 years ago
```
#### 依赖
无任何第三方依赖
Squashed commit of the following: commit 721f5df77672d904a8926433d33a1546d6853724 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 11:09:38 2019 +0800 nezha -> naza commit 94cbffe32a567ac3b11583675900cd9ac1561149 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:44:23 2019 +0800 rename package log -> package nazalog commit db8122c69d18cd6b16dd2853207f0397373fa863 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:26:00 2019 +0800 package connection: bugfix make exitChan commit 083db929f6341a35c170e023e5d4a8aa8386b87d Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:06:00 2019 +0800 rename package nzjson -> nazajson commit e01dda7218b4390aa5b9e8280be109761c8fc576 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 09:59:35 2019 +0800 new package: nazajson commit 09421c2b985e610a5940bf3c8a2e6bd3b4838274 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 12:04:21 2019 +0800 1. package connection & package log: Config -> Option 2. package log: IsToStdOut default -> ture, ShortFileFlag default -> true commit 1052ef0ead7c4ad2c8acfdcccefe186d8f743d51 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:13:57 2019 +0800 package connection: rename wmsg struct -> wMsg commit a450ed21b008b10898d363c4a58a04662ac6a283 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:11:11 2019 +0800 package connection: erase func Printf commit 810d41a83beb54110461c288d7078a9c08b16b5b Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:06:57 2019 +0800 package log: mkdir 777 -> 644 commit e087bc8fe70f1ba619d87ca77356b198f117cd9c Merge: f117d4b d6006a3 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:21:05 2019 +0800 Merge branch 'master' into dev commit f117d4b20e19812aa9f0aa618daa60a73169e486 Merge: f2f631e 059da41 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:12:38 2019 +0800 Merge branch 'master' into dev commit f2f631eb21e1a99f1b40470dc517be97f36d74fd Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 19:37:31 2019 +0800 test.sh 只在开发机 macos 下执行 gofmt 检查 commit fb692804a04147c96bd17cd262988595bad08d3d Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 17:26:36 2019 +0800 1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒 commit b2c187b59f30c0e1f7c2d2ac867784a39aefa445 Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 10:56:04 2019 +0800 1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log commit a9b2fe8f863cb0b28189a257246703351a604b02 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 16:42:09 2019 +0800 package connection: bugfix func Done commit 5b13acb3d83860cf98cc8b02358f97a7fc514ffb Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:59:02 2019 +0800 package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close commit 4beaa82c509cc44ddb0ecda91674191e715b83d8 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:44:37 2019 +0800 package connection: 增加 Done 方法 commit 0f3da700ec8cb90068dda7a8f091aefd9076be07 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 14:05:39 2019 +0800 package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法 commit d154645a44a9e66b3aa2b655571d566ce28ea264 Author: q191201771 <191201771@qq.com> Date: Mon Sep 23 19:48:08 2019 +0800 package connection: Flush before Close
5 years ago
#### 项目名 naza 由来
本仓库主要用于存放我自己写的一些 Go 基础库代码。目前主要服务于我的另一个项目: [lal](https:////github.com/q191201771/lal)
naza 即哪吒(正确拼音为 nezha我女儿发音读作 naza少一个字母挺好~),希望本仓库以后能像三头六臂,有多种武器的哪吒一样,为我提供一个趁手的工具箱。
#### 相关文档
* pkg/snowflake [分布式ID生成算法snowflake介绍及Go语言实现](https://pengrl.com/p/20041/)
* pkg/bininfo [给Go程序加入编译版本时间等信息](https://pengrl.com/p/37397/)
* pkg/nazastring [Go语言中[]byte和string类型相互转换时的性能分析和优化](https://www.pengrl.com/p/31544/)
5 years ago
* [Go创建对象时如何优雅的传递初始化参数](https://pengrl.com/p/60015/)
* playground/p3 [利用CPU cache特性优化Go程序](https://pengrl.com/p/9125/)
* playground/p4 [老弟在吗我的Go标准库中的二分查找有bug](https://pengrl.com/p/20011/)
Squashed commit of the following: commit 721f5df77672d904a8926433d33a1546d6853724 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 11:09:38 2019 +0800 nezha -> naza commit 94cbffe32a567ac3b11583675900cd9ac1561149 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:44:23 2019 +0800 rename package log -> package nazalog commit db8122c69d18cd6b16dd2853207f0397373fa863 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:26:00 2019 +0800 package connection: bugfix make exitChan commit 083db929f6341a35c170e023e5d4a8aa8386b87d Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 10:06:00 2019 +0800 rename package nzjson -> nazajson commit e01dda7218b4390aa5b9e8280be109761c8fc576 Author: q191201771 <191201771@qq.com> Date: Mon Sep 30 09:59:35 2019 +0800 new package: nazajson commit 09421c2b985e610a5940bf3c8a2e6bd3b4838274 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 12:04:21 2019 +0800 1. package connection & package log: Config -> Option 2. package log: IsToStdOut default -> ture, ShortFileFlag default -> true commit 1052ef0ead7c4ad2c8acfdcccefe186d8f743d51 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:13:57 2019 +0800 package connection: rename wmsg struct -> wMsg commit a450ed21b008b10898d363c4a58a04662ac6a283 Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:11:11 2019 +0800 package connection: erase func Printf commit 810d41a83beb54110461c288d7078a9c08b16b5b Author: q191201771 <191201771@qq.com> Date: Sun Sep 29 11:06:57 2019 +0800 package log: mkdir 777 -> 644 commit e087bc8fe70f1ba619d87ca77356b198f117cd9c Merge: f117d4b d6006a3 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:21:05 2019 +0800 Merge branch 'master' into dev commit f117d4b20e19812aa9f0aa618daa60a73169e486 Merge: f2f631e 059da41 Author: q191201771 <191201771@qq.com> Date: Fri Sep 27 14:12:38 2019 +0800 Merge branch 'master' into dev commit f2f631eb21e1a99f1b40470dc517be97f36d74fd Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 19:37:31 2019 +0800 test.sh 只在开发机 macos 下执行 gofmt 检查 commit fb692804a04147c96bd17cd262988595bad08d3d Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 17:26:36 2019 +0800 1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒 commit b2c187b59f30c0e1f7c2d2ac867784a39aefa445 Author: q191201771 <191201771@qq.com> Date: Wed Sep 25 10:56:04 2019 +0800 1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log commit a9b2fe8f863cb0b28189a257246703351a604b02 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 16:42:09 2019 +0800 package connection: bugfix func Done commit 5b13acb3d83860cf98cc8b02358f97a7fc514ffb Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:59:02 2019 +0800 package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close commit 4beaa82c509cc44ddb0ecda91674191e715b83d8 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 15:44:37 2019 +0800 package connection: 增加 Done 方法 commit 0f3da700ec8cb90068dda7a8f091aefd9076be07 Author: q191201771 <191201771@qq.com> Date: Tue Sep 24 14:05:39 2019 +0800 package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法 commit d154645a44a9e66b3aa2b655571d566ce28ea264 Author: q191201771 <191201771@qq.com> Date: Mon Sep 23 19:48:08 2019 +0800 package connection: Flush before Close
5 years ago
#### 联系我
欢迎扫码加我微信,进行技术交流或扯淡。
<img src="https://pengrl.com/images/yoko_vx.jpeg" width="180" height="180" />