Commit Graph

364 Commits

Author SHA1 Message Date
john
c135122ca1 improve package gconv for detailed handling of interface attributes 2020-07-13 23:13:50 +08:00
john
8efc0ca0ea comment update for package gvalid 2020-07-12 10:33:24 +08:00
john
293256c2ca improve package gmode 2020-07-12 09:34:43 +08:00
John
0f6f571ccb remove the space trimming of the validation value for package gvalid 2020-07-08 20:53:56 +08:00
John
4a31082f8c improve function Struct/StructDeep for package gconv 2020-07-08 11:32:35 +08:00
John
3643a69d8d improve function Struct/StructDeep for package gconv 2020-07-08 10:52:45 +08:00
John
0e025eda1b improve function Struct for package gconv 2020-07-06 22:37:37 +08:00
John
7c44bf8e94 Merge branch 'develop' of https://github.com/gogf/gf into develop 2020-07-06 21:18:51 +08:00
John
e6718f1113 improve function Struct for package gconv 2020-07-06 21:18:25 +08:00
john
c04be14cd9 add custom validation rule feature for package gvalid 2020-07-05 18:55:38 +08:00
John
3ae44185f4 add ScanList feature for gdb.Result 2020-07-05 11:23:39 +08:00
john
1290f42f75 improving package gdb 2020-07-04 08:50:52 +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
bb07c60838 rename CopySlice to SliceCopy for package gutil 2020-06-22 21:56:10 +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
54f47845f6 entity feature developing for package gdb 2020-06-17 11:37:45 +08:00
John
cb238cd6d9 add todo for gconv.Convert 2020-06-16 20:44:57 +08:00
John
386f38af5e improve gconv.Struct 2020-06-16 20:18:40 +08:00
John
65cea430c2 improva gconv.Struct 2020-06-16 19:30:35 +08:00
John
4d38b508a3 improve gvar by changig gvar.Var from type struct to interface 2020-06-16 17:38:05 +08:00
John
5c774fd391 improve function Structs for package gconv 2020-06-16 11:37:00 +08:00
John
5ce5d0e593 improve auto marshal for struct slice for package gredis 2020-06-15 23:19:38 +08:00
John
95a8b51fb4 improve map slice converting for package gconv 2020-06-15 18:59:18 +08:00
John
2b64979730 Merge branch 'master' of https://github.com/gogf/gf 2020-06-15 16:48:17 +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
e8d6d96883 fix issue in error field name lost for package gvalid 2020-06-14 17:28:48 +08:00
John
49d1e3dbaf fix issue of attribute name lost in package gvalid 2020-06-12 22:25:58 +08:00
John
4f699af051 improve pointer type convertion for package gconv 2020-06-09 14:19:23 +08:00
John
30501a882d improve function Struct for package gconv 2020-06-06 15:31:04 +08:00
John
cc4c49b5b0 add unit testing case for pointer attribute mapping for function Parse 2020-06-06 10:09:19 +08:00
john
dbb51a9328 improve package glist 2020-06-04 20:13:33 +08:00
john
c4e599ce63 improve random bytes buffer hanlding for package grand 2020-06-04 14:45:56 +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
ef1d9a561c improve the route feature for ghttp.Server 2020-06-03 00:09:51 +08:00
John
6889542801 improve package guid 2020-05-27 11:26:05 +08:00
John
8e6f1f1740 improve performance of random buffer usage for package grand 2020-05-25 23:39:09 +08:00
John
b6ab1a992c improve empty checks for common interfaces implementer 2020-05-25 14:26:08 +08:00
John
55308cc37c improve package gipv4 by formating the value retrieving fuctions to Get* 2020-05-18 23:50:31 +08:00
John
4d9db6edf0 improve package gconv for map converting 2020-05-18 20:58:19 +08:00
John
bd8d3fca08 improve domain rule for package gvalid 2020-05-18 19:44:15 +08:00
john
7c2cff7d99 add function GetVar for package gcache 2020-05-17 18:16:26 +08:00
john
788e15dbb6 comment update for package guid 2020-05-17 15:40:24 +08:00
john
45a94d23d5 improve session feature by allowing custom session id creating function for ghttp.Server 2020-05-17 14:33:21 +08:00
john
351de5ee6a fix concurrent issue in buffer handling of package grand 2020-05-17 12:46:28 +08:00
john
3559436d1e improve package guid 2020-05-17 08:50:37 +08:00
john
caead810e2 add package guid; improve performance of package grand 2020-05-16 21:56:31 +08:00
john
ebdc5d9c9d comment update for package grand 2020-05-16 16:08:30 +08:00
john
4164059211 add function B for package grand; improve package grand 2020-05-16 16:05:31 +08:00
john
991dbe50e0 add more functions for package gipv4; move package guuid to standalone package of gogf 2020-05-16 15:35:21 +08:00
john
9355bc73a2 improve package gvalid 2020-05-16 13:31:24 +08:00
John
a7504f0629 add more unit testing cases for package gdb 2020-05-13 23:21:11 +08:00
John
6621edb04c improve i18n of chinese for package gvalid 2020-05-13 19:10:38 +08:00
John
b0c722e297 improve package gvalid 2020-05-10 22:34:16 +08:00
John
47a6284274 improve package gvalid 2020-05-10 22:32:10 +08:00
John
150b8edb70 improve package gvalid 2020-05-10 17:49:23 +08:00
John
aa5d3285eb improve package gvalid 2020-05-10 16:48:00 +08:00
john
993d6e3076 improve package gvalid 2020-05-10 10:56:11 +08:00
John
78ad9d8c2d improve error message of package gvalid 2020-05-10 09:05:52 +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
b79ff84c6f add struct slice conversion for request parameters for ghttp.Request; improve package gconv 2020-04-30 16:53:47 +08:00
John
1e844d505a comment update for package ghttp/gconv; readme update 2020-04-29 00:14:29 +08:00
John
6e7224e306 improve error handling for gconv.Struct/ghttp.Server; add NewSkip/NewfSkip function for package gerror 2020-04-28 15:04:07 +08:00
John
71b1f00dc5 improve package gdb/gstr/gvalid 2020-04-20 22:36:28 +08:00
John
734aa5a6fe improve create_at,update_at,delete_at feature for package gdb 2020-04-15 12:56:41 +08:00
John
0515fc94cb add MapMerge/MapMargeCopy functions for package gutil; improve template view feature for indefinite parameters 2020-04-14 21:11:12 +08:00
John
385a503d31 add soft deleting feature, improve chars handling for package gdb 2020-04-11 09:09:25 +08:00
John
f22da4ba3a improve gconv.MapDeep with anonymous checks for attribute struct field 2020-04-09 15:34:23 +08:00
John
23c2f12672 improve MapDeep function for package gconv; improve gjson.New function for loading struct parameter 2020-04-09 13:37:27 +08:00
John
7fd53673ce add automatic time and soft deleting features: create_at/update_at/delete_at for package gdb; improve schema changing feature for package gdb 2020-04-08 21:26:14 +08:00
John
25a91c732c improve String/Map converting for package gconv 2020-04-07 21:29:41 +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
82125416a2 comment update for package ghttp 2020-04-06 22:31:45 +08:00
John
7e0fa8e0cd improve package garray 2020-03-30 20:31:47 +08:00
John
8ecd62d3de add example for package gres 2020-03-28 21:32:29 +08:00
John
f1f575fd5c improve package gins/gfile/intlog 2020-03-28 00:37:23 +08:00
John
6d47810782 improve context feature for ghttp.Request; improve comment for package gjson 2020-03-21 13:32:43 +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
849e7370d1 improve gutil.Dump, improve sqlite file searching when opening db file 2020-03-19 11:37:31 +08:00
John
22540921b3 improve codes typing for package package gvalid 2020-03-17 22:23:29 +08:00
sunmoon
4fb01e68f7 移除字符串ip地址与Long类型互转的方法,修改中文长度校验的方法 2020-03-17 14:26:36 +08:00
sunmoon
2812a247aa 添加验证中英文混合字符串长度的判断规则,按utf8计算,一个中文算一个字符,cn-length,cn-min-length,cn-max-length 2020-03-17 11:19:43 +08:00
sunmoon
2438f565e9 添加字符串ip地址与Long类型互转的方法 2020-03-16 11:18:06 +08:00
John
11f0317e92 add Array feature for package gdb 2020-03-11 23:17:41 +08:00
John
5acce82e63 add slice support for gconv.Map 2020-03-08 23:09:37 +08:00
John
7f0163d958 improve gconv.Struct* functions for custom types conversion 2020-03-06 23:22:08 +08:00
John
93d0760898 add GetPage function for ghttp.Request 2020-03-06 11:01:03 +08:00
John
a161b44cc7 improve package gpage 2020-03-05 18:07:07 +08:00
John
d8a7e36478 improve router feature for ghttp.Server 2020-03-04 17:29:23 +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
John
34e7c5f809 rename grand.Str to grand.S; add different function Str for grand 2020-02-21 00:01:27 +08:00
John
20b64507b1 improve string conversion for gtime.Time 2020-02-16 22:39:12 +08:00
John
88684ca00a add panic if internal watcher creation fails for gfsnotify; improve codes and change comment from chinese to english for gdb 2020-02-10 20:37:53 +08:00
John
cdb3b94e22 add NewWithTag function for gjson/gparser 2020-02-08 14:07:32 +08:00
John
1999ef95c1 fix issue in gconv.Struct* functions panic when converting attribute value is nil 2020-02-05 22:06:24 +08:00
John
b15075fdfe fix issue in gconv.Struct* functions panic when converting attribute value is nil 2020-02-05 22:02:49 +08:00
John
4d2b244319 fix issue in gres.UnpackContent; fix issue in gtime.NewFromTimeStamp 2020-02-04 17:09:18 +08:00
John
8f2dcf21ff improve gconv.Map 2020-01-20 21:25:55 +08:00
John
665b5960c8 fix issue in minus number converting for gconv.Int 2020-01-20 20:18:24 +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
2bacc77224 improve JSON/XML parsing feature for ghttp.Request 2020-01-04 15:35:21 +08:00
John
bc53f265af improve gconv.Map/String 2020-01-03 20:23:10 +08:00
John
27b677b0c0 improve Map converting feature for gconv; improve package gproc for local shell searching; improve JSON/XML response for ghttp.Response 2020-01-02 19:45:41 +08:00
John
604a10400d improve parameter parsing feature for ghttp.Request 2020-01-01 14:57:57 +08:00
John
fe5d2e5685 improve parameter parsing feature for ghttp.Request 2020-01-01 14:18:00 +08:00
John
e33230a88f add package gbuild 2019-12-14 17:01:27 +08:00
John
458318d374 improve prefix and word quote feature for gdb; merge develop 2019-12-12 23:54:07 +08:00
John
87295ef1fe improve process communication feature for gproc; add more slice converting functions for gconv 2019-12-11 21:22:41 +08:00
John
34ef0ea792 add prefix feature for gdb 2019-12-10 21:14:15 +08:00
John
28825f5395 add gdebug.BuildInfo function; improving gproc 2019-12-09 21:53:44 +08:00
John
6ca5141020 some improving 2019-12-08 22:55:32 +08:00
John
671157cb70 release updates 2019-12-05 12:34:33 +08:00
John
be15f85eae remove sql.ErrNoRows error for select functions for gdb; improve configuration feature for gdb/glog/gview 2019-12-04 16:04:52 +08:00
John
b3fafc64f8 improve parameter handling for ghttp.Request 2019-11-29 22:02:19 +08:00
John
7e43aa6b9d improve parameter parsing for ghtto.Request; add configuration feature for gview 2019-11-28 11:18:09 +08:00
John
4ee7c82bf1 fix issue in empty slice converting panic for gconv.Struct 2019-11-28 08:46:38 +08:00
John
85caa40a3d fix issue in empty slice converting panic for gconv.Struct 2019-11-27 23:38:33 +08:00
John
382356bc8d improve gerror for stack information; fix issue in gconv.String for nil *time.Time type 2019-11-21 21:49:00 +08:00
John Guo
e36dd06f22
Merge pull request #342 from myvfpx/master 2019-11-08 23:45:48 +08:00
John
8f2c62d444 improve logging feature for ghttp.Server 2019-11-08 19:52:49 +08:00
John
05120b585d improve configuration feature for glog/ghttp.Server 2019-11-07 11:32:25 +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
9416cd1274 add CopyMap function for gutil; improve ghttp.Request 2019-10-30 23:26:57 +08:00
John
8b5ab846b2 improve unit test case for gmutex 2019-10-30 23:01:24 +08:00
John
a15b93be90 comment update for package gtcp/gipv4/gipv6 2019-10-30 19:55:50 +08:00
John
e4909b318b Merge branch 'develop' of https://github.com/gogf/gf into develop 2019-10-26 11:03:17 +08:00
John
f1b7cb37c6 add configuration feature for glog 2019-10-26 10:58:07 +08:00
John
cf34d7bd56 fix issue in gconv.Interfaces; improve storage interface for gsession 2019-10-25 13:49:03 +08:00
John Guo
63cd1128a7
Merge pull request #346 from danvinhe/feature-optimize_grand.Str 2019-10-23 22:51:58 +08:00
John
d4051df5b6 improve gdb/gstr/gconv/garray 2019-10-21 19:13:25 +08:00
John
c8cf46a5a7 add Create function for gvar; add Uints/SliceUint function for gconv 2019-10-01 10:42:34 +08:00
John
987ce709e5 add UnmarshalJSON for gtime; add ineterface MapStrAny support for gjson.New 2019-09-30 17:23:23 +08:00
John
46768d6f91 add UnmarshalJSON function and corresponding unit test cases for package grray 2019-09-29 20:47: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
lindan.he
cce8ac5118 The 'letters' already contain numbers, so just grab characters randomly from this. 2019-09-26 11:00:59 +08:00
myvfpx
419b58452f 修改身份证尾数验证规则,新增银行卡号验证规则 2019-09-24 10:38:20 +08:00
myvfpx
b1835ea4e8 添加身份证号尾数验证规则,添加银行卡号验证规则 2019-09-24 10:21:37 +08:00
John
a876b6133d fix issue in unit test case og grand 2019-09-23 23:24:36 +08:00
John
51d9fe5253 add AllowDomain option for ghttp.CORS; add IsSubDomain function for gstr; improve grand.Intn 2019-09-23 19:25:03 +08:00
John
02e467fb57 rename MapStruct* functions to MapToMap* for gconv and according packags 2019-09-19 23:23:41 +08:00
John
1d264a6545 add package gmode for release mode management; add error returning for template rendoring for gmvc.View/ghttp.Response 2019-09-16 10:44:07 +08:00
john
19a856549a improve codes details 2019-09-13 22:08:18 +08:00
John
96106ace92 remove deprecated functions and fix corresponding unit test cases 2019-09-06 17:59:55 +08:00
John
0d5dfe59b9 remove deprecated functions 2019-09-06 16:44:40 +08:00
John
b1c2b9f4e0 improve gconv.Bool for NO/YES; improve gdb for model generation 2019-09-02 15:48:25 +08:00
John
15a6680833 add package gi18n 2019-09-01 00:30:01 +08:00
John
6c61704e60 adding package gi18n 2019-08-31 18:04:12 +08:00
John
89a8203949 comment update for gpage 2019-08-22 23:30:28 +08:00
John
fd6321e71b update donator; update unit test case for gdb; fix issue in bool convertion for []byte for gconv 2019-08-22 23:24:45 +08:00
john
7ecc47e127 adding gres package for resource feature 2019-08-10 23:36:38 +08:00
John
5cb4a8557d fix issue for unit test case of gutil 2019-08-10 17:59:34 +08:00
john
fda345577a add package gdebug; improve gconv/gfile/gset 2019-08-09 20:05:36 +08:00
john
8387710473 fix issue in gset.Pop; improve internal/debug 2019-08-09 09:51:56 +08:00
john
3af3fd1428 fix issue in gset.Pop; improve internal/debug 2019-08-09 09:51:52 +08:00
john
c7c6e2866e add Unsafe* functions for gconv 2019-08-09 09:14:48 +08:00
John
7172ae0232 fix issue in invalid error stacks for glog; improve internal/debug and gutil for stack printing 2019-08-08 22:58:49 +08:00
John
4d5814fc43 improve grand 2019-08-07 16:21:31 +08:00
John
6d13b91d37 improve grand 2019-08-07 16:20:19 +08:00
John
2911ebb5d7 add middleware feature for ghttp.Server 2019-08-03 23:57:20 +08:00
John
e622f6aff2 improve gconv to support struct field of interface{} conversion 2019-08-01 19:53:28 +08:00
John
b01add2925 update project structure 2019-07-29 21:01:19 +08:00