Commit Graph

251 Commits

Author SHA1 Message Date
John Guo
0e158903c2 improve package gtimer for priority checks 2021-08-06 12:08:49 +08:00
jroam
537cbf983e edit some function annotations 2021-08-04 23:35:29 +08:00
jroam
248e6ff134 bugfix garray Sort 2021-08-01 15:19:48 +08:00
jroam
9be92cc3d4 garray代码规范化 2021-07-28 22:18:06 +08:00
John Guo
0ddacdd7e2 add error code for components 2021-07-20 23:02:02 +08:00
John Guo
5e92747737 fix issue #1291 2021-07-08 22:44:16 +08:00
John Guo
e5ae1cb85c improve session variable map in template parsing 2021-07-06 09:53:35 +08:00
John Guo
d109706ad3 unify error package to gerror 2021-06-26 18:34:26 +08:00
John Guo
d450de8e0d add OnDuplicate/OnDuplicateEx feature for package gdb 2021-06-16 21:44:31 +08:00
John Guo
c3c5414ce2 add custom handler feature 2021-06-02 09:42:27 +08:00
John Guo
7003c284d0 replace json.Unmarshal with json.UnmarshalUseNumber for packages 2021-05-15 22:38:07 +08:00
John Guo
d76e4c8aed refract package gtimer for more stable 2021-05-15 18:13:51 +08:00
John Guo
4d1e25cdab change internal constant varibale names for package gqueue 2021-04-02 16:16:54 +08:00
John Guo
482e093331 add map/[]map converting support for gconv.Scan;improve gconv.MaptoMaps 2021-03-23 17:53:20 +08:00
John Guo
2c34d96b9d add tls configuration for ghttp.Client 2021-02-23 22:00:11 +08:00
jianchenma
80248e9a6e improve tracing 2021-01-28 14:09:13 +08:00
jianchenma
68247acab1 improve package gjson/gvar 2021-01-19 14:26:17 +08:00
John Guo
8b6d00b193 improve package gconv 2021-01-17 22:06:07 +08:00
John Guo
093034acd1 copyright comment update 2021-01-17 21:46:25 +08:00
John Guo
751a567e84 add Is* functions for package gvar 2020-12-14 18:54:14 +08:00
John Guo
0aa82ad020 improve package gpool 2020-12-07 18:57:40 +08:00
Wlvs530
80c4786afd Not Callback ExpireFunc In Pool.Get() 2020-12-05 13:21:18 +08:00
John
80b629916a fix issue in function Clone for package gmap/garray/gtree 2020-12-02 21:38:29 +08:00
John Guo
97bcf2a438
Merge pull request #980 from lutherlau/patch-4
Update garray_sorted_str.go
2020-11-12 20:44:48 +08:00
John Guo
23d62da87f
Merge pull request #981 from lutherlau/patch-3
Update garray_sorted_int.go
2020-11-12 20:39:44 +08:00
John Guo
b4d947fecd
Merge pull request #979 from lutherlau/patch-2
Update garray_sorted_any.go
2020-11-12 20:39:17 +08:00
John Guo
650c95af31
Merge pull request #982 from lutherlau/patch-5
Update gtree_btree.go
2020-11-12 20:38:51 +08:00
John
9f04e46166 mark gconv.StructDeep/StructsDeep deprecated 2020-11-05 23:02:29 +08:00
None
1072ea3fb0
Update gtree_btree.go
bugfix: avoid overflow
2020-11-05 22:44:09 +08:00
None
ea9e8055a4
Update garray_sorted_str.go
bugfix: avoid overflow
2020-11-05 22:42:15 +08:00
None
784abf2a30
Update garray_sorted_int.go
bugfix: avoid overflow
2020-11-05 22:41:43 +08:00
None
ed4a70deff
Update garray_sorted_any.go
bugfix: avoid overflow
2020-11-05 22:37:36 +08:00
John
631810dda2 add function String for package gmap 2020-09-02 19:53:58 +08:00
john
f654bb2eda comment update for package gtree 2020-07-16 11:46:11 +08:00
john
6712a33164 fix issue 785 in function Unique for packge garray 2020-07-10 22:26:02 +08:00
John
3ae44185f4 add ScanList feature for gdb.Result 2020-07-05 11:23:39 +08:00
John
17b91dcad7 add ListItemValues/ListItemValuesUnique functions and associated unit testing cases for package gutil/gvar 2020-07-02 23:40:34 +08:00
John
46bdde9265 revert gvar.Var from interface to struct 2020-06-29 13:40:19 +08:00
John
aceae5eee3 add todo for package gpool 2020-06-22 20:08:27 +08:00
John
f28a76d470 merge develop 2020-06-17 23:59:20 +08:00
John
b2aa59d893 import third-party library json-iterator to improve the performance for json operations 2020-06-17 21:16:25 +08:00
John
452f0fc99e add Scan/ScanDeep for package gvar 2020-06-17 11:40:37 +08:00
John
4d38b508a3 improve gvar by changig gvar.Var from type struct to interface 2020-06-16 17:38:05 +08:00
John
95a8b51fb4 improve map slice converting for package gconv 2020-06-15 18:59:18 +08:00
John
508cb7db88 add and improve Scan/ScanDeep feature for package gdb/gvar/gjson/gconv 2020-06-15 16:46:48 +08:00
John
c9c3be517c fix issue in example of package glist 2020-06-11 18:43:35 +08:00
John
27c2a03ea8 add example for package gset 2020-06-10 23:07:07 +08:00
John
b56eb3a948 example update for package garray 2020-06-10 19:50:22 +08:00
John
fb1b0bfd88 example update for package g/garray/gmap/gset/ghttp 2020-06-10 19:47:25 +08:00
John
dd10167ec2 example updates for package garray 2020-06-10 19:09:14 +08:00
John
f3ff1ae08b improve example for package gmap 2020-06-09 16:24:54 +08:00
john
3c6ab96283 fix issue in function Walk and add more example for package gset 2020-06-04 21:46:22 +08:00
john
d2c4fa921a add more example for package gmap 2020-06-04 20:45:18 +08:00
john
dbb51a9328 improve package glist 2020-06-04 20:13:33 +08:00
john
55bfc3fa73 add more examples for package garray 2020-06-04 18:28:33 +08:00
john
899fcbf2da add mor example for package garray 2020-06-04 17:55:43 +08:00
John
76d31a7fbb improve slice result handling by treating it as string slice for package gredis 2020-06-03 23:44:21 +08:00
John
b6ab1a992c improve empty checks for common interfaces implementer 2020-05-25 14:26:08 +08:00
john
a5a267567c comment update for package garray 2020-05-22 12:04:58 +08:00
john
7c2cff7d99 add function GetVar for package gcache 2020-05-17 18:16:26 +08:00
John
80fddad64d fix issue in PopRight function for package garray; improve json.Marshal for package garray 2020-05-08 21:08:06 +08:00
John
22ecf4f1b6 add context feature for package glog 2020-05-08 17:12:37 +08:00
John
16779359ee remove package gchan 2020-05-06 18:43:19 +08:00
John
ec92b08f25 add function Maps for package gvar; add function GetMaps for package gjson; improve MapToMap* functions for package gconv 2020-05-04 23:42:51 +08:00
john
13e2353729 fix lock issue in function search for package garray 2020-05-03 23:08:18 +08:00
john
90d19a84ce improve package garray/gset, adding function ContainsI 2020-05-03 22:52:04 +08:00
John
8d9dd17eac add Walk function for package gset; improve fields handling feature for package gdb 2020-04-27 21:18:42 +08:00
John
8779a3f211 add function Walk for package garray; improve comment for package garray 2020-04-18 13:30:49 +08:00
John
b17e3a6804 improve package gset 2020-04-13 23:44:43 +08:00
John
01995f5501 improve function Marge for package garray using interface feature; improve slice converting using interface feature for package gconv 2020-04-07 21:25:52 +08:00
John
68abb3cf3d improve package glist for var initilalization feature 2020-04-07 20:58:58 +08:00
John
77cc323d0e improve package gset/gmap for initialization 2020-04-07 20:41:49 +08:00
John
c7a9c03495 improve package garray/gmap for initialization 2020-04-07 20:06:26 +08:00
John
f7850e3ed3 improve package garray 2020-04-07 11:29:42 +08:00
John
343126ef22 fix usage for garray.PopRand 2020-03-30 20:56:00 +08:00
John
7e0fa8e0cd improve package garray 2020-03-30 20:31:47 +08:00
John
f1f575fd5c improve package gins/gfile/intlog 2020-03-28 00:37:23 +08:00
John
926b664615 improve package garray for crossing border handling; improve rotation feature for package glog 2020-03-25 23:36:56 +08:00
John
75dc1d82c1 example names change 2020-03-22 12:49:46 +08:00
John
a5e048eb5f example name changes 2020-03-22 12:34:12 +08:00
John
6d47810782 improve context feature for ghttp.Request; improve comment for package gjson 2020-03-21 13:32:43 +08:00
John
7881b2dee4 improve unit testing cases 2020-03-20 22:34:56 +08:00
John
f18e6f078c improve unit testing cases 2020-03-20 08:49:40 +08:00
John
07e65c14a9 improve unit testing cases 2020-03-19 23:53:03 +08:00
John
0b6d04485e improve unit testing cases 2020-03-19 22:56:12 +08:00
John
36401a063d improve gutil.Dump, improve sqlite file searching when opening db file 2020-03-19 13:38:42 +08:00
John
2b46e765c4 change function time.Duration.Milliseconds to time.Duration.Nanoseconds for compatibility of Golang version < 1.13 2020-03-16 23:03:37 +08:00
John
c7f911cae2 change function time.Duration.Milliseconds to time.Duration.Nanoseconds for compatibility of Golang version < 1.13 2020-03-16 23:03:35 +08:00
John
74be9fac18 add file rotation feature for package glog; improve gpool/gfpool; fix issue in gfile.MTimeMillisecond 2020-03-15 19:32:26 +08:00
John
0a92df691b improve package gpool/gfpool; donator updates 2020-03-14 17:12:44 +08:00
John
22e9965629 improve template view instance initialization for instance of ghttp.Server 2020-03-10 08:57:37 +08:00
John
93d0760898 add GetPage function for ghttp.Request 2020-03-06 11:01:03 +08:00
John
d8a7e36478 improve router feature for ghttp.Server 2020-03-04 17:29:23 +08:00
John Guo
63f756f731
Merge pull request #514 from kevinlincg/master
fix typo in gpool_bench_test.go
2020-02-26 23:38:33 +08:00
John
816e075c52 add more unit testing cases for package garray 2020-02-25 23:19:37 +08:00
John
745a913cfb add FilterNil/FilterEmpty functions for package garray; add FieldsStr/FieldsExStr for gdb.Model 2020-02-22 14:26:36 +08:00
KevinLin
d570624caa fix typo in gpool_bench_test.go 2020-02-20 09:01:09 +08:00
John
eb6a7a4728 add function UnmarshalValue feature for package garray/gmap/gset/gtype/gvar/gjson/gconv 2020-01-20 19:56:42 +08:00
John
7df53ff55e rename all timestamp function names from *Second to Timestamp* 2020-01-20 14:14:11 +08:00
John
705ab1d33f improve garray; add RemoveValue function for garray 2020-01-17 19:48:50 +08:00
John
b867b2a0bc add return parameter name for function Cas of gtype;improve Response.Redirect* functions by adding optional parameter code 2020-01-16 21:04:28 +08:00
John
a10f428715 add Iterator* functions for garray; add ReplaceDir*/ReplaceFile* functions for gfile; remove gfile.Replace/ReplaceFunc functions 2019-12-25 20:56:39 +08:00
John
5db8851213 comment update for gtype 2019-12-20 23:23:50 +08:00
John
50018773b7 add iterate example for glist; improve variable name for ghttp.Server 2019-12-18 19:45:46 +08:00
John
df99036d41 add iterate example for glist; improve variable name for ghttp.Server 2019-12-18 19:44:40 +08:00
John
ae0fa888f0 add iterate example for glist; improve variable name for ghttp.Server 2019-12-18 19:40:07 +08:00
John
18892fb66d add iterate example for glist; improve variable name for ghttp.Server 2019-12-18 19:37:07 +08:00
John
e33230a88f add package gbuild 2019-12-14 17:01:27 +08:00
John
be4bf39719 comment update for container 2019-11-30 18:33:51 +08:00
John
459c69839a comment update for container 2019-11-30 18:28:11 +08:00
John
0e62510c6f improve configuration feature, add instance feature for package glog; add package guuid for UUID feature 2019-11-06 20:22:20 +08:00
John
e30b2b0732 improve gsession/gmap/gtree 2019-11-04 21:26:16 +08:00
John
66355354fc improve gfsnotify/gview and container 2019-10-31 23:37:33 +08:00
John
a15b93be90 comment update for package gtcp/gipv4/gipv6 2019-10-30 19:55:50 +08:00
John
b373ace065 update comment for gqueue.Len 2019-10-25 17:32:03 +08:00
John
d4051df5b6 improve gdb/gstr/gconv/garray 2019-10-21 19:13:25 +08:00
John
97fe8235da fix issue in session expiring for file storage of gsession; add Pop/Pops functions for gset/gmap 2019-10-16 23:33:06 +08:00
John
0ac45dc379 rename file name from link_map to list_map for package gmap 2019-10-14 22:43:31 +08:00
John
69ee5375b9 improve Join/String functions for garray/gset/gmap; add AddIfNotExistFunc/AddIfNotExistFuncLock functions for gset 2019-10-13 22:31:28 +08:00
John
b08d7c3c38 change Join function feature for garray 2019-10-11 23:17:29 +08:00
John
e764b2393d change params order of Insert* functions for glist; improve gstr.IsNumber 2019-10-01 16:35:44 +08:00
John
6384e75ed9 improva container for json marshal/unmarshal interface 2019-10-01 16:03:18 +08:00
John
c8cf46a5a7 add Create function for gvar; add Uints/SliceUint function for gconv 2019-10-01 10:42:34 +08:00
John
494b5bbae2 fix issue in unit test case for gvar 2019-09-30 17:30:24 +08:00
John
987ce709e5 add UnmarshalJSON for gtime; add ineterface MapStrAny support for gjson.New 2019-09-30 17:23:23 +08:00
John
7fe9c641f4 add UnmarshalJSON func tion for gset 2019-09-30 14:37:05 +08:00
John
ee1414c010 add UnmarshalJSON func tion for gmap/gvar 2019-09-30 14:23:15 +08:00
John
8eb1b685a5 improve UnmarshalJSON function for garray 2019-09-29 22:16:36 +08:00
John
46768d6f91 add UnmarshalJSON function and corresponding unit test cases for package grray 2019-09-29 20:47:59 +08:00
John
bb6fed3dc2 add UnmarshalJSON function and corresponding unit test cases for package gtype 2019-09-29 20:12:59 +08:00
John
47e74d27bf add MarshalJSON function to implement the interface MarshalJSON for json.Marshal for gtype 2019-09-29 15:59:09 +08:00
John
b830f9b96d improve ghttp.Server.Request for parameter retrieving; add Option feature for gdb; update example for hook feature of ghttp.Server 2019-09-29 14:27:09 +08:00
John
c85162a8a0 improving gdb.Model/gmap 2019-09-26 20:01:48 +08:00
John
3218c89f17 improve gfile/gstr/ghttp 2019-09-23 16:21:19 +08:00
John
02e467fb57 rename MapStruct* functions to MapToMap* for gconv and according packags 2019-09-19 23:23:41 +08:00
John
b9fbfb91bd improve middleware feature of ghttp.Server; add MapStrAny function for gmap/gtree 2019-09-19 19:44:46 +08:00
John
96106ace92 remove deprecated functions and fix corresponding unit test cases 2019-09-06 17:59:55 +08:00
John
6cf4bf81e5 improve gcmd with arguments parser 2019-09-05 11:38:36 +08:00
John
7fad4b686c improve gcompress/gres for packing files 2019-09-03 23:18:54 +08:00
John
a31108e753 fix issue in gring/ghttp 2019-08-26 23:51:01 +08:00
John
2bf9bc98a7 improve gkvdb, container 2019-08-26 23:35:44 +08:00
John
7dffd9d1ff add package gkvdb; add kvdb storage feature for ghttp.Server 2019-08-22 21:04:30 +08:00
John
6113df2b3e adding gres 2019-08-14 22:03:52 +08:00
John
9ae537cafc adding gres 2019-08-13 21:06:11 +08:00
John
12f28dfc95 improving gtree/gres 2019-08-13 13:45:01 +08:00
john
fda345577a add package gdebug; improve gconv/gfile/gset 2019-08-09 20:05:36 +08:00
john
3af3fd1428 fix issue in gset.Pop; improve internal/debug 2019-08-09 09:51:52 +08:00
John
878305fee3 add middleware feature for ghttp.Server 2019-08-03 17:14:54 +08:00
John
9e96a30ea2 update unit test cases for garray/gparser 2019-08-01 17:31:48 +08:00
John
d188fbdf5a improve gyaml with gopkg.in/yaml.v3; update unit test cases for gfile/gyaml/gtime/garray 2019-08-01 17:12:58 +08:00