golang 工具
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.
 
 
Go to file
q191201771 e896fea6b8 Squashed commit of the following:
commit 721f5df776
Author: q191201771 <191201771@qq.com>
Date:   Mon Sep 30 11:09:38 2019 +0800

    nezha -> naza

commit 94cbffe32a
Author: q191201771 <191201771@qq.com>
Date:   Mon Sep 30 10:44:23 2019 +0800

    rename package log -> package nazalog

commit db8122c69d
Author: q191201771 <191201771@qq.com>
Date:   Mon Sep 30 10:26:00 2019 +0800

    package connection: bugfix make exitChan

commit 083db929f6
Author: q191201771 <191201771@qq.com>
Date:   Mon Sep 30 10:06:00 2019 +0800

    rename package nzjson -> nazajson

commit e01dda7218
Author: q191201771 <191201771@qq.com>
Date:   Mon Sep 30 09:59:35 2019 +0800

    new package: nazajson

commit 09421c2b98
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 1052ef0ead
Author: q191201771 <191201771@qq.com>
Date:   Sun Sep 29 11:13:57 2019 +0800

    package connection: rename wmsg struct -> wMsg

commit a450ed21b0
Author: q191201771 <191201771@qq.com>
Date:   Sun Sep 29 11:11:11 2019 +0800

    package connection: erase func Printf

commit 810d41a83b
Author: q191201771 <191201771@qq.com>
Date:   Sun Sep 29 11:06:57 2019 +0800

    package log: mkdir 777 -> 644

commit e087bc8fe7
Merge: f117d4b d6006a3
Author: q191201771 <191201771@qq.com>
Date:   Fri Sep 27 14:21:05 2019 +0800

    Merge branch 'master' into dev

commit f117d4b20e
Merge: f2f631e 059da41
Author: q191201771 <191201771@qq.com>
Date:   Fri Sep 27 14:12:38 2019 +0800

    Merge branch 'master' into dev

commit f2f631eb21
Author: q191201771 <191201771@qq.com>
Date:   Wed Sep 25 19:37:31 2019 +0800

    test.sh 只在开发机 macos 下执行 gofmt 检查

commit fb692804a0
Author: q191201771 <191201771@qq.com>
Date:   Wed Sep 25 17:26:36 2019 +0800

    1. package log: 增加 panic 接口 2. test.sh 中增加 gofmt 检查提醒

commit b2c187b59f
Author: q191201771 <191201771@qq.com>
Date:   Wed Sep 25 10:56:04 2019 +0800

    1. package log: bugfix 日志业务方内容有换行,并且有源码行号时,整行日志添加换行 2. package connection: debug log

commit a9b2fe8f86
Author: q191201771 <191201771@qq.com>
Date:   Tue Sep 24 16:42:09 2019 +0800

    package connection: bugfix func Done

commit 5b13acb3d8
Author: q191201771 <191201771@qq.com>
Date:   Tue Sep 24 15:59:02 2019 +0800

    package connection: 1. 增加 ModWriteChanSize 方法 2. bugfix Close 中忘记调用 close

commit 4beaa82c50
Author: q191201771 <191201771@qq.com>
Date:   Tue Sep 24 15:44:37 2019 +0800

    package connection: 增加 Done 方法

commit 0f3da700ec
Author: q191201771 <191201771@qq.com>
Date:   Tue Sep 24 14:05:39 2019 +0800

    package connection: 1. 增加 wChanSize 配置,用于指定是否使用异步发送 2. 添加 Flush 方法

commit d154645a44
Author: q191201771 <191201771@qq.com>
Date:   Mon Sep 23 19:48:08 2019 +0800

    package connection: Flush before Close
5 years ago
pkg Squashed commit of the following: 5 years ago
.gitignore Squashed commit of the following: 5 years ago
.travis.yml 添加CI文件 6 years ago
CHANGELOG.md v0.3.0 -> CHANGELOG.md 5 years ago
LICENSE 1st 6 years ago
README.md Squashed commit of the following: 5 years ago
build.sh rm demo/connstat 6 years ago
build_linux.sh 添加 /demo/connstat 用于测试 net.Conn.SetWriteDeadline 的性能开销 6 years ago
go.mod Squashed commit of the following: 5 years ago
test.sh Squashed commit of the following: 5 years ago

README.md


Go语言基础库





        


工程目录说明

pkg/                  ......源码包
    |-- assert/       ......提供了单元测试时的断言功能,减少一些模板代码
    |-- bele/         ......提供了大小端的转换操作
    |-- bininfo/      ......将编译时的 git 版本号时间Go 编译器信息打入程序中
    |-- connection/   ......对 net.Conn 接口的二次封装
    |-- mockserver/   ......模拟一些服务端,用于快速测试其它代码
    |-- mockwriter/   ......模拟 Writer 接口,用于快速测试其它代码
    |-- nazajson/     ......json 操作
    |-- nazalog/      ......日志库
    |-- unique/       ......对象唯一 ID
demo/                 ......示例相关的代码
bin/                  ......可执行文件编译输出目录

依赖

无任何第三方依赖

项目名 naza 由来

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

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