diff --git a/g/container/gbtree/gbtree.go b/g/container/gbtree/gbtree.go index 2d83eaf24..a5feaf38a 100644 --- a/g/container/gbtree/gbtree.go +++ b/g/container/gbtree/gbtree.go @@ -1,5 +1,6 @@ // from https://github.com/google/btree + package gbtree import ( diff --git a/g/container/gbtree/gbtree_test.go b/g/container/gbtree/gbtree_test.go index 398989a81..496363b50 100644 --- a/g/container/gbtree/gbtree_test.go +++ b/g/container/gbtree/gbtree_test.go @@ -1,4 +1,5 @@ + package gbtree import ( diff --git a/g/container/glist/safelist.go b/g/container/glist/safelist.go index 8bf55baf2..c66de59d7 100644 --- a/g/container/glist/safelist.go +++ b/g/container/glist/safelist.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // // + package glist import ( diff --git a/g/container/gmap/int_bool_map.go b/g/container/gmap/int_bool_map.go index 954d71ded..f5d1529ac 100644 --- a/g/container/gmap/int_bool_map.go +++ b/g/container/gmap/int_bool_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/int_int_map.go b/g/container/gmap/int_int_map.go index 1e1f5b23e..8dcba4f57 100644 --- a/g/container/gmap/int_int_map.go +++ b/g/container/gmap/int_int_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/int_interface_map.go b/g/container/gmap/int_interface_map.go index a5d81e551..da355782c 100644 --- a/g/container/gmap/int_interface_map.go +++ b/g/container/gmap/int_interface_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/int_string_map.go b/g/container/gmap/int_string_map.go index e46570822..e9f3d08c1 100644 --- a/g/container/gmap/int_string_map.go +++ b/g/container/gmap/int_string_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/interface_interface_map.go b/g/container/gmap/interface_interface_map.go index e2e0b3cc3..ae46ced9a 100644 --- a/g/container/gmap/interface_interface_map.go +++ b/g/container/gmap/interface_interface_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/string_bool_map.go b/g/container/gmap/string_bool_map.go index 4c29c2237..d78d5a546 100644 --- a/g/container/gmap/string_bool_map.go +++ b/g/container/gmap/string_bool_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/string_int_map.go b/g/container/gmap/string_int_map.go index 08a435711..c8c1df5f0 100644 --- a/g/container/gmap/string_int_map.go +++ b/g/container/gmap/string_int_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/string_interface_map.go b/g/container/gmap/string_interface_map.go index 5fb60bf1d..2c5ebbc3d 100644 --- a/g/container/gmap/string_interface_map.go +++ b/g/container/gmap/string_interface_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/string_string_map.go b/g/container/gmap/string_string_map.go index fdff08297..b8a1dbd8a 100644 --- a/g/container/gmap/string_string_map.go +++ b/g/container/gmap/string_string_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gmap/uint_interface_map.go b/g/container/gmap/uint_interface_map.go index 09a09748e..0c8e6af96 100644 --- a/g/container/gmap/uint_interface_map.go +++ b/g/container/gmap/uint_interface_map.go @@ -4,6 +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 gmap import ( diff --git a/g/container/gset/int64_set.go b/g/container/gset/int64_set.go index b8da851fc..2ca121ce3 100644 --- a/g/container/gset/int64_set.go +++ b/g/container/gset/int64_set.go @@ -4,6 +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 gset import ( diff --git a/g/container/gset/int_set.go b/g/container/gset/int_set.go index 056f6d67f..509e4234e 100644 --- a/g/container/gset/int_set.go +++ b/g/container/gset/int_set.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // // + package gset import ( diff --git a/g/container/gset/interface_set.go b/g/container/gset/interface_set.go index e9f520232..065f770a2 100644 --- a/g/container/gset/interface_set.go +++ b/g/container/gset/interface_set.go @@ -4,6 +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 gset import ( diff --git a/g/container/gset/string_set.go b/g/container/gset/string_set.go index 172a49360..1f9495c74 100644 --- a/g/container/gset/string_set.go +++ b/g/container/gset/string_set.go @@ -4,6 +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 gset import ( diff --git a/g/database/gdb/gdb.go b/g/database/gdb/gdb.go index 37ac9052c..634222c20 100644 --- a/g/database/gdb/gdb.go +++ b/g/database/gdb/gdb.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // // 对常用关系数据库的封装管理包 + package gdb import ( diff --git a/g/database/gdb/gdb_base.go b/g/database/gdb/gdb_base.go index 84881b48d..b053dd441 100644 --- a/g/database/gdb/gdb_base.go +++ b/g/database/gdb/gdb_base.go @@ -4,6 +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 gdb import ( diff --git a/g/database/gdb/gdb_config.go b/g/database/gdb/gdb_config.go index 2a8c055e8..b5f11933f 100644 --- a/g/database/gdb/gdb_config.go +++ b/g/database/gdb/gdb_config.go @@ -4,6 +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 gdb import ( diff --git a/g/database/gdb/gdb_linkop.go b/g/database/gdb/gdb_linkop.go index 693c87c67..8e18917cd 100644 --- a/g/database/gdb/gdb_linkop.go +++ b/g/database/gdb/gdb_linkop.go @@ -3,6 +3,7 @@ // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. + package gdb import ( diff --git a/g/database/gdb/gdb_mysql.go b/g/database/gdb/gdb_mysql.go index 9d939ee79..70bc6ccdc 100644 --- a/g/database/gdb/gdb_mysql.go +++ b/g/database/gdb/gdb_mysql.go @@ -4,6 +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 gdb import ( diff --git a/g/database/gdb/gdb_pgsql.go b/g/database/gdb/gdb_pgsql.go index 23b6689ab..49a91cf83 100644 --- a/g/database/gdb/gdb_pgsql.go +++ b/g/database/gdb/gdb_pgsql.go @@ -4,6 +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 gdb import ( diff --git a/g/encoding/gbase64/gbase64.go b/g/encoding/gbase64/gbase64.go index b6e6cc1f0..fab67b7bc 100644 --- a/g/encoding/gbase64/gbase64.go +++ b/g/encoding/gbase64/gbase64.go @@ -4,6 +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 gbase64 import ( diff --git a/g/encoding/gbinary/gbinary.go b/g/encoding/gbinary/gbinary.go index 16337e98f..cfbd72e5e 100644 --- a/g/encoding/gbinary/gbinary.go +++ b/g/encoding/gbinary/gbinary.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // 二进制及byte操作管理包 + package gbinary import ( diff --git a/g/encoding/gcompress/gcompress.go b/g/encoding/gcompress/gcompress.go index 802ec2759..a6dc530fa 100644 --- a/g/encoding/gcompress/gcompress.go +++ b/g/encoding/gcompress/gcompress.go @@ -4,6 +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 gcompress import ( diff --git a/g/encoding/gcrc32/gcrc32.go b/g/encoding/gcrc32/gcrc32.go index 1b7b986cc..1016608f8 100644 --- a/g/encoding/gcrc32/gcrc32.go +++ b/g/encoding/gcrc32/gcrc32.go @@ -4,6 +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 gcrc32 import ( diff --git a/g/encoding/ghash/ghash.go b/g/encoding/ghash/ghash.go index 7f6152963..5cc38d09b 100644 --- a/g/encoding/ghash/ghash.go +++ b/g/encoding/ghash/ghash.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // 封装常用的hash函数 + package ghash diff --git a/g/encoding/ghtml/ghtml.go b/g/encoding/ghtml/ghtml.go index 7950af09a..a35e33666 100644 --- a/g/encoding/ghtml/ghtml.go +++ b/g/encoding/ghtml/ghtml.go @@ -4,6 +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 ghtml import "strings" diff --git a/g/encoding/gjson/gjson.go b/g/encoding/gjson/gjson.go index 4e5e1d053..ea356698c 100644 --- a/g/encoding/gjson/gjson.go +++ b/g/encoding/gjson/gjson.go @@ -4,6 +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 gjson import ( diff --git a/g/encoding/gjson/internal/gjson.go b/g/encoding/gjson/internal/gjson.go index 26d359dd5..362fa1a17 100644 --- a/g/encoding/gjson/internal/gjson.go +++ b/g/encoding/gjson/internal/gjson.go @@ -4,6 +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 internal import ( diff --git a/g/encoding/gmd5/gmd5.go b/g/encoding/gmd5/gmd5.go index 74f97823d..77c044b8b 100644 --- a/g/encoding/gmd5/gmd5.go +++ b/g/encoding/gmd5/gmd5.go @@ -4,6 +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 gmd5 import ( diff --git a/g/encoding/gsha1/gsha1.go b/g/encoding/gsha1/gsha1.go index 0596aa6a7..4324aacf3 100644 --- a/g/encoding/gsha1/gsha1.go +++ b/g/encoding/gsha1/gsha1.go @@ -4,6 +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 gsha1 import ( diff --git a/g/encoding/gurl/url.go b/g/encoding/gurl/url.go index 82c5fa819..40422f376 100644 --- a/g/encoding/gurl/url.go +++ b/g/encoding/gurl/url.go @@ -4,6 +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 gurl import "net/url" diff --git a/g/frame/gcfg/gcfg.go b/g/frame/gcfg/gcfg.go index b1f1325f8..2a9b5cbf2 100644 --- a/g/frame/gcfg/gcfg.go +++ b/g/frame/gcfg/gcfg.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // 全局配置管理对象,配置文件为json文件 + package gcfg import ( diff --git a/g/frame/gins/gins.go b/g/frame/gins/gins.go index fa1581f7a..15b9cfd30 100644 --- a/g/frame/gins/gins.go +++ b/g/frame/gins/gins.go @@ -6,6 +6,7 @@ // 单例对象管理工具 // 框架内置了一些核心对象,并且可以通过Set和Get方法实现IoC以及对内置核心对象的自定义替换 + package gins import ( diff --git a/g/frame/gmvc/controller.go b/g/frame/gmvc/controller.go index 95ff3335a..97dcb6b2b 100644 --- a/g/frame/gmvc/controller.go +++ b/g/frame/gmvc/controller.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // MVC控制器基类 + package gmvc import ( diff --git a/g/frame/gmvc/model.go b/g/frame/gmvc/model.go index ad7f3b690..56bf58e84 100644 --- a/g/frame/gmvc/model.go +++ b/g/frame/gmvc/model.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // 模型基类 + package gmvc type Model struct { diff --git a/g/frame/gmvc/view.go b/g/frame/gmvc/view.go index b65ca1a3d..001bca52a 100644 --- a/g/frame/gmvc/view.go +++ b/g/frame/gmvc/view.go @@ -4,6 +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 gmvc import ( diff --git a/g/net/ghttp/http_client.go b/g/net/ghttp/http_client.go index 14d08032a..dccd4f2d2 100644 --- a/g/net/ghttp/http_client.go +++ b/g/net/ghttp/http_client.go @@ -4,6 +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 ghttp import ( diff --git a/g/net/ghttp/http_client_request.go b/g/net/ghttp/http_client_request.go index 69bd45203..2eef9ef3f 100644 --- a/g/net/ghttp/http_client_request.go +++ b/g/net/ghttp/http_client_request.go @@ -3,6 +3,7 @@ // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. + package ghttp import ( diff --git a/g/net/ghttp/http_client_response.go b/g/net/ghttp/http_client_response.go index 2757607d6..b5431dc14 100644 --- a/g/net/ghttp/http_client_response.go +++ b/g/net/ghttp/http_client_response.go @@ -3,6 +3,7 @@ // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. + package ghttp import ( diff --git a/g/net/ghttp/http_controller.go b/g/net/ghttp/http_controller.go index 9edbc07fd..bb6599224 100644 --- a/g/net/ghttp/http_controller.go +++ b/g/net/ghttp/http_controller.go @@ -4,6 +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 ghttp diff --git a/g/net/ghttp/http_server.go b/g/net/ghttp/http_server.go index f85add25c..c7ef11141 100644 --- a/g/net/ghttp/http_server.go +++ b/g/net/ghttp/http_server.go @@ -4,6 +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 ghttp import ( diff --git a/g/net/ghttp/http_server_config.go b/g/net/ghttp/http_server_config.go index a8815e298..6c13974c3 100644 --- a/g/net/ghttp/http_server_config.go +++ b/g/net/ghttp/http_server_config.go @@ -4,6 +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 ghttp import ( diff --git a/g/net/ghttp/http_server_cookie.go b/g/net/ghttp/http_server_cookie.go index 14c69e143..fbb3aae85 100644 --- a/g/net/ghttp/http_server_cookie.go +++ b/g/net/ghttp/http_server_cookie.go @@ -6,6 +6,7 @@ // // HTTP Cookie管理对象, // 由于Cookie是和HTTP请求挂钩的,因此被包含到 ghttp 包中进行管理 + package ghttp import ( diff --git a/g/net/ghttp/http_server_domain.go b/g/net/ghttp/http_server_domain.go index 46f59430c..493f20dc1 100644 --- a/g/net/ghttp/http_server_domain.go +++ b/g/net/ghttp/http_server_domain.go @@ -4,6 +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 ghttp import ( diff --git a/g/net/ghttp/http_server_handler.go b/g/net/ghttp/http_server_handler.go index fca4f7e9f..39fbe9cca 100644 --- a/g/net/ghttp/http_server_handler.go +++ b/g/net/ghttp/http_server_handler.go @@ -4,6 +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 ghttp import ( diff --git a/g/net/ghttp/http_server_response.go b/g/net/ghttp/http_server_response.go index 6e600adbe..7fbbfef9d 100644 --- a/g/net/ghttp/http_server_response.go +++ b/g/net/ghttp/http_server_response.go @@ -4,6 +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 ghttp import ( diff --git a/g/net/ghttp/http_server_session.go b/g/net/ghttp/http_server_session.go index 44f0867a3..a0da2486f 100644 --- a/g/net/ghttp/http_server_session.go +++ b/g/net/ghttp/http_server_session.go @@ -4,6 +4,7 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. // 并发安全的Session管理器 + package ghttp import ( diff --git a/g/net/gipv4/gipv4.go b/g/net/gipv4/gipv4.go index ea1f805d5..375a60ee0 100644 --- a/g/net/gipv4/gipv4.go +++ b/g/net/gipv4/gipv4.go @@ -4,6 +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 gipv4 import ( diff --git a/g/net/gipv6/gipv6.go b/g/net/gipv6/gipv6.go index b4b4e860a..f5cb48327 100644 --- a/g/net/gipv6/gipv6.go +++ b/g/net/gipv6/gipv6.go @@ -4,6 +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 gipv6 import "gitee.com/johng/gf/g/util/gregx" diff --git a/g/net/grouter/grouter.go b/g/net/grouter/grouter.go index 35cf33d16..5b351d460 100644 --- a/g/net/grouter/grouter.go +++ b/g/net/grouter/grouter.go @@ -4,6 +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 grouter import ( diff --git a/g/net/gscanner/scanner.go b/g/net/gscanner/scanner.go index 527eb4b3b..e7d331cd1 100644 --- a/g/net/gscanner/scanner.go +++ b/g/net/gscanner/scanner.go @@ -5,6 +5,7 @@ // You can obtain one at https://gitee.com/johng/gf. // 局域网端口扫描 + package gscanner import ( diff --git a/g/net/gsmtp/smtp.go b/g/net/gsmtp/smtp.go index 0d8df6db1..a0ce781ec 100644 --- a/g/net/gsmtp/smtp.go +++ b/g/net/gsmtp/smtp.go @@ -4,6 +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 gsmtp import ( diff --git a/g/net/gtcp/tcp.go b/g/net/gtcp/tcp.go index b1e0b1bd9..589836074 100644 --- a/g/net/gtcp/tcp.go +++ b/g/net/gtcp/tcp.go @@ -4,6 +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 gtcp import ( diff --git a/g/net/gtcp/tcp_server.go b/g/net/gtcp/tcp_server.go index afc64b59a..b6d2de209 100644 --- a/g/net/gtcp/tcp_server.go +++ b/g/net/gtcp/tcp_server.go @@ -4,6 +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 gtcp import ( diff --git a/g/net/gudp/udp.go b/g/net/gudp/udp.go index b2c2f52c9..d8d631caf 100644 --- a/g/net/gudp/udp.go +++ b/g/net/gudp/udp.go @@ -4,6 +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 gudp import ( diff --git a/g/net/gudp/udp_server.go b/g/net/gudp/udp_server.go index bb6ae31cb..faeca9e57 100644 --- a/g/net/gudp/udp_server.go +++ b/g/net/gudp/udp_server.go @@ -4,6 +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 gudp import ( diff --git a/g/os/gcache/gcache.go b/g/os/gcache/gcache.go index b71a27a79..71542e08f 100644 --- a/g/os/gcache/gcache.go +++ b/g/os/gcache/gcache.go @@ -4,6 +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 gcache import ( diff --git a/g/os/gcmd/gcmd.go b/g/os/gcmd/gcmd.go index 62d943514..8d1c43c21 100644 --- a/g/os/gcmd/gcmd.go +++ b/g/os/gcmd/gcmd.go @@ -4,6 +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 gcmd import ( diff --git a/g/os/genv/genv.go b/g/os/genv/genv.go index cef8d5a7f..64d2d8f9e 100644 --- a/g/os/genv/genv.go +++ b/g/os/genv/genv.go @@ -4,6 +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 genv import "os" diff --git a/g/os/gfile/gfile.go b/g/os/gfile/gfile.go index ca4c1f355..f2722b164 100644 --- a/g/os/gfile/gfile.go +++ b/g/os/gfile/gfile.go @@ -4,6 +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 gfile import ( diff --git a/g/os/gfilepool/gfilepool.go b/g/os/gfilepool/gfilepool.go index f3fb17ccd..3a5d448b3 100644 --- a/g/os/gfilepool/gfilepool.go +++ b/g/os/gfilepool/gfilepool.go @@ -4,6 +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 gfilepool import ( diff --git a/g/os/gfilespace/gfilespace.go b/g/os/gfilespace/gfilespace.go index 313158621..1e25941f8 100644 --- a/g/os/gfilespace/gfilespace.go +++ b/g/os/gfilespace/gfilespace.go @@ -6,6 +6,7 @@ // 文件空间管理, 可用于文件碎片空间维护及再利用,支持自动合并连续碎片空间 + package gfilespace import ( diff --git a/g/os/gfilespace/gfilespace_api.go b/g/os/gfilespace/gfilespace_api.go index 4216d3673..9353710bf 100644 --- a/g/os/gfilespace/gfilespace_api.go +++ b/g/os/gfilespace/gfilespace_api.go @@ -4,6 +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 gfilespace import ( diff --git a/g/os/glog/glog.go b/g/os/glog/glog.go index e0b09f233..c2ddc7976 100644 --- a/g/os/glog/glog.go +++ b/g/os/glog/glog.go @@ -4,6 +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 import ( diff --git a/g/os/gmmap/gmmap_solaris.go b/g/os/gmmap/gmmap_solaris.go index 74c7089a3..38a8803c9 100644 --- a/g/os/gmmap/gmmap_solaris.go +++ b/g/os/gmmap/gmmap_solaris.go @@ -1,4 +1,5 @@ // from https://github.com/influxdata/influxdb/tree/master/pkg/mmap + package gmmap import ( diff --git a/g/os/gmmap/gmmap_test.go b/g/os/gmmap/gmmap_test.go index 7c768d1ee..fbc0bd987 100644 --- a/g/os/gmmap/gmmap_test.go +++ b/g/os/gmmap/gmmap_test.go @@ -1,3 +1,4 @@ + package gmmap import ( diff --git a/g/os/gmmap/gmmap_unix.go b/g/os/gmmap/gmmap_unix.go index c14a311e3..b9b6382b4 100644 --- a/g/os/gmmap/gmmap_unix.go +++ b/g/os/gmmap/gmmap_unix.go @@ -1,4 +1,5 @@ // from https://github.com/influxdata/influxdb/tree/master/pkg/mmap + package gmmap import ( diff --git a/g/os/gmmap/gmmap_windows.go b/g/os/gmmap/gmmap_windows.go index abad52004..d50e902bf 100644 --- a/g/os/gmmap/gmmap_windows.go +++ b/g/os/gmmap/gmmap_windows.go @@ -1,4 +1,5 @@ // from https://github.com/influxdata/influxdb/tree/master/pkg/mmap + package gmmap import ( diff --git a/g/os/gtime/time.go b/g/os/gtime/time.go index 65a6454c4..2373e9ee4 100644 --- a/g/os/gtime/time.go +++ b/g/os/gtime/time.go @@ -4,6 +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 gtime import ( diff --git a/g/os/gview/gview.go b/g/os/gview/gview.go index 997cd2cd3..6ae5474c4 100644 --- a/g/os/gview/gview.go +++ b/g/os/gview/gview.go @@ -4,6 +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 gview import ( diff --git a/g/util/gconv/gconv.go b/g/util/gconv/gconv.go index cd66e852b..c5b599158 100644 --- a/g/util/gconv/gconv.go +++ b/g/util/gconv/gconv.go @@ -4,6 +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 gconv import ( diff --git a/g/util/grand/rand.go b/g/util/grand/rand.go index 8bc7eef24..765bb3cc1 100644 --- a/g/util/grand/rand.go +++ b/g/util/grand/rand.go @@ -4,6 +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 grand import ( diff --git a/g/util/gregx/regx.go b/g/util/gregx/regx.go index 0ecc058fd..c8729fb42 100644 --- a/g/util/gregx/regx.go +++ b/g/util/gregx/regx.go @@ -4,6 +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 gregx import ( diff --git a/g/util/gutil/gutil.go b/g/util/gutil/gutil.go index 3f14ac771..900a08eae 100644 --- a/g/util/gutil/gutil.go +++ b/g/util/gutil/gutil.go @@ -4,6 +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 gutil // 便利数组查找字符串索引位置,如果不存在则返回-1 diff --git a/g/util/gvalid/gvalid.go b/g/util/gvalid/gvalid.go index fdd917659..d8ad8c4ab 100644 --- a/g/util/gvalid/gvalid.go +++ b/g/util/gvalid/gvalid.go @@ -50,6 +50,7 @@ in 格式:in:value1,value2,... 说明:参 not-in 格式:not-in:value1,value2,... 说明:参数值不应该在value1,value2,...中(字符串匹配) regex 格式:regex:pattern 说明:参数值应当满足正则匹配规则pattern */ + package gvalid import ( diff --git a/g/util/gvalid/gvalid_test.go b/g/util/gvalid/gvalid_test.go index 2f4427b92..c7d75c356 100644 --- a/g/util/gvalid/gvalid_test.go +++ b/g/util/gvalid/gvalid_test.go @@ -3,6 +3,7 @@ // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://gitee.com/johng/gf. + package gvalid_test import (