Commit Graph

73 Commits

Author SHA1 Message Date
John
51bb7a9854 ignore private attribute of struct in gconv/gvalid 2019-03-22 10:12:15 +08:00
John
80e0eae6b0 add TLSConfig support for ghttp.Server 2019-03-19 17:48:37 +08:00
John
72eeadd9aa Merge branch 'master' into develop 2019-03-17 22:31:15 +08:00
John
0af55794f6 add more unit test cases for gdb 2019-03-17 22:26:41 +08:00
John
9f9172c775 update unit test cases of package gconv 2019-03-15 09:05:56 +08:00
John
320e0db417 fix int-overflow issue in gconv.String when converting int64 to string; add more unit test cases for package gconv 2019-03-15 00:22:39 +08:00
John
4ad5450b80 gtest updates; remove one unit test case of gconv.Struct 2019-03-08 18:18:29 +08:00
John
2ba59e8943 fix issue in gtime convert in package gconv; add Structs/Scan functions for gdb.Model; add GetStructs/GetScan functions for gdb.Base and gdb.TX 2019-03-07 23:36:45 +08:00
John
13749feab4 add json features '-' and 'omitempty' for gconv.Map, like package 'json' from stdlib; add internal package 'empty', to check empty variable 2019-03-04 22:59:29 +08:00
John
c3b9b8d5ae gconv updates 2019-03-03 00:53:35 +08:00
John
66efbe63f0 add struct support for *Insert/*Save/*Replace/*Update/Where/Data functions 2019-02-26 01:19:01 +08:00
John
76c49170bd change gitee.com/johng/gf -> github.com/gogf/gf 2019-02-02 16:18:25 +08:00
John
0762fec696 comments update 2019-02-02 15:16:45 +08:00
John
6c6c64bb3b rename category string to text 2019-02-01 20:45:11 +08:00
John
020b050fb1 fix unit test cases for gstr/gconv/ghttp 2019-02-01 11:42:25 +08:00
John
08d71cede3 merge qiangg_php 2019-02-01 00:04:34 +08:00
John
85677b952f fulfil funcs of gstr/gset/garray; move gstr/gregex to the string category; move gtest to the test category 2019-01-30 21:27:03 +08:00
John
58d60bc899 add json tag support for struct converting of gconv 2019-01-24 15:37:53 +08:00
John
72569321fa package comments update 2019-01-16 13:35:16 +08:00
John
0c41909454 pakage comments updates 2019-01-15 23:27:47 +08:00
John
2b5d889bb9 fulfil unit test cases of gconv 2019-01-15 21:54:34 +08:00
John
302f3c1467 optimized package gconv, supported struct attr with ptr 2019-01-14 13:55:07 +08:00
John
9415419324 fix issue in gconv.Struct when given atrr of struct is nil time.Time 2019-01-14 09:00:31 +08:00
John
f4644ce685 change func(xxx, safe...bool) to func(xxx, unsafe...bool); add new internal package mutex 2019-01-12 23:36:22 +08:00
John
1966b40d01 ghttp.Client updates; add more unit test cases for web server 2018-12-31 00:50:55 +08:00
John
e558863743 up 2018-12-30 11:08:07 +08:00
John
d7381399aa fix issue of grand.intn in x86 arch; add router group feature for WebServer 2018-12-20 21:04:43 +08:00
John
7434dfe6fa done refacting gdb package 2018-12-16 22:22:07 +08:00
John
e67aa63a50 refract gdb package, add complete unit test cases, almost there 2018-12-15 15:50:39 +08:00
John
d23cdcbe57 改进gcache,完善功能及基准测试;改进gconv.Map对struct转换时默认使用json tag作为键名 2018-12-04 19:26:46 +08:00
John
b19e47783b ghttp增加静态文件目录映射功能;改进gspath目录管理功能;改进gconv的slice转换功能,并增加gconv.Map方法 2018-11-30 09:48:57 +08:00
john
1d751345f7 改进gconv.Int/Uint对float类型字符串的转换支持 2018-11-06 12:41:01 +08:00
john
d257e554dd 改进grand随机数生成设计,底层使用crypto/rand+缓冲区实现高速的随机数生成;gtime模块增加FuncCost函数执行耗时计算 2018-11-05 13:53:17 +08:00
john
88a966ef17 gconv增加对带' '参数键名到struct属性的转换,如:nick name => struct.NickName,并完善示例程序 2018-11-02 13:13:01 +08:00
john
e7c60f11e1 gconv增加对带'-'及'_'参数键名到struct属性的转换,如:nick_name/nick-name => struct.NickName 2018-11-02 12:59:45 +08:00
john
a9f03fe9cb 改进gfpool文件指针池,增加对文件mv/rm后的指针池重建;改进gtime,增加对时间字符串更多的默认时间格式支持,新增gtime.ParseTimeFromContent方法 2018-11-01 17:22:55 +08:00
john
0389e8a8dd gconv增加基准测试代码 2018-10-31 09:57:37 +08:00
john
306d279a5b 改进gconv.Struct转换默认规则,支持不区分大小写的键名与属性名称匹配 2018-10-31 09:14:52 +08:00
john
7fbbf09b0e 新增go modules支持,自行管理第三方包依赖,方便开发者使用 2018-10-22 11:13:00 +08:00
John
5204193c58 改进gdb,增加数据库操作自动Close特性(使用链接池),用户无需再defer db.Close(),并增加g.DB数据库对象单例别名 2018-10-13 20:29:27 +08:00
john
f0c4068448 完成gvar包的开发,并改进相关依赖包 2018-10-09 13:33:00 +08:00
john
845b954d0e gconv增加Ints/Floats/Interfaces转换方法,完善gconv.Struct方法封装,改进相关依赖包对gconv的引用 2018-10-09 10:05:55 +08:00
john
c3d8ba756b 完善gconv.Struct转换示例代码,改进gjson/gparser/gcfg相关引用方法 2018-10-08 13:38:36 +08:00
john
99735b5f1d 改进gconv.Struct对象转换 2018-09-30 13:31:03 +08:00
john
5f73334930 gconv.Struct改进 2018-09-29 18:06:04 +08:00
john
d7d3e6a50d gconv改进 2018-09-28 13:33:41 +08:00
john
a68ee95575 改进gconv对象转换方法,名称修改gconv.MapToStruct -> gconv.Struct 2018-09-28 09:58:01 +08:00
john
82993a1813 gfpool改进,gkafka测试,gcache基准测试 2018-09-18 18:57:34 +08:00
John
359b73e61c garray.Slice方法改进,gqueue改进 2018-09-16 10:51:02 +08:00
John
01c9c165ee 改进gcache/gqueue,提高执行效率,并完善相应的基准测试用例 2018-09-15 16:40:13 +08:00