From db71e4c1d14bf4b88610d386bf6325597eb51b74 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 3 Jan 2018 11:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8C=85=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=EF=BC=8C=E4=BE=BF=E4=BA=8Egodoc=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/frame/gins/gins.go | 2 +- g/net/ghttp/ghttp.go | 2 +- g/net/gipv4/gipv4.go | 2 +- g/net/gipv6/gipv6.go | 2 +- g/net/gscanner/scanner.go | 2 +- g/os/glog/glog.go | 2 +- g/os/gmmap/gmmap.go | 2 ++ g/util/gconv/gconv.go | 2 +- g/util/gidgen/gidgen.go | 2 +- g/util/gvalid/gvalid.go | 2 +- 10 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 g/os/gmmap/gmmap.go diff --git a/g/frame/gins/gins.go b/g/frame/gins/gins.go index 6f808888a..8fcbfa98a 100644 --- a/g/frame/gins/gins.go +++ b/g/frame/gins/gins.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 单例对象管理工具 +// 单例对象管理. // 框架内置了一些核心对象,并且可以通过Set和Get方法实现IoC以及对内置核心对象的自定义替换 package gins diff --git a/g/net/ghttp/ghttp.go b/g/net/ghttp/ghttp.go index 12192b26a..a3b2eb9d6 100644 --- a/g/net/ghttp/ghttp.go +++ b/g/net/ghttp/ghttp.go @@ -4,5 +4,5 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 强大的HTTP Client及Server管理包 +// HTTP Client&Server package ghttp diff --git a/g/net/gipv4/gipv4.go b/g/net/gipv4/gipv4.go index 811092e11..eed98fa89 100644 --- a/g/net/gipv4/gipv4.go +++ b/g/net/gipv4/gipv4.go @@ -5,7 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // -// IPv4管理 +// IPv4 package gipv4 import ( diff --git a/g/net/gipv6/gipv6.go b/g/net/gipv6/gipv6.go index c71df2756..d22edd496 100644 --- a/g/net/gipv6/gipv6.go +++ b/g/net/gipv6/gipv6.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// IPv6管理 +// IPv6 package gipv6 import "gitee.com/johng/gf/g/util/gregx" diff --git a/g/net/gscanner/scanner.go b/g/net/gscanner/scanner.go index 527eb4b3b..f0293f48a 100644 --- a/g/net/gscanner/scanner.go +++ b/g/net/gscanner/scanner.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 局域网端口扫描 +// IP扫描器 package gscanner import ( diff --git a/g/os/glog/glog.go b/g/os/glog/glog.go index 74811ec34..147078570 100644 --- a/g/os/glog/glog.go +++ b/g/os/glog/glog.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 日志模块 +// 日志模块. // 直接文件/输出操作,没有异步逻辑,没有使用缓存或者通道 package glog diff --git a/g/os/gmmap/gmmap.go b/g/os/gmmap/gmmap.go new file mode 100644 index 000000000..6821f31cc --- /dev/null +++ b/g/os/gmmap/gmmap.go @@ -0,0 +1,2 @@ +// MMAP +package gmmap diff --git a/g/util/gconv/gconv.go b/g/util/gconv/gconv.go index 390092237..bfa110122 100644 --- a/g/util/gconv/gconv.go +++ b/g/util/gconv/gconv.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 数据基本类型转换, +// 类型转换. // 如果给定的interface{}参数不是指定转换的输出类型,那么会进行强制转换,效率会比较低, // 建议已知类型的转换自行调用相关方法来单独处理。 package gconv diff --git a/g/util/gidgen/gidgen.go b/g/util/gidgen/gidgen.go index 640169614..63010e853 100644 --- a/g/util/gidgen/gidgen.go +++ b/g/util/gidgen/gidgen.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 唯一ID生成器, +// ID生成器. // 内部采用了通道+缓冲池来实现高效的ID递增生成, // 非常适合高并发下使用 package gidgen diff --git a/g/util/gvalid/gvalid.go b/g/util/gvalid/gvalid.go index 89b34c242..96cfc0ca8 100644 --- a/g/util/gvalid/gvalid.go +++ b/g/util/gvalid/gvalid.go @@ -4,7 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. -// 通用数据验证工具 +// 数据校验. // 本来打算取名gvalidator的,名字太长了,缩写一下 package gvalid