Commit Graph

368 Commits

Author SHA1 Message Date
Jack
60fc9b6417 add gerror.ApiCurrent impements for gerror.Error 2020-11-25 19:06:29 +08:00
John
fadb7a8f8f fix issue 1002 2020-11-21 13:20:32 +08:00
John
e20183e7a1 improve gutil.Keys/Values for embedded struct 2020-11-20 00:53:12 +08:00
Jack
24a377d3a8 fix issue in custom mapping for gconv.Struct 2020-11-19 14:52:19 +08:00
John
d56eb49e41 improve performance for gconv.Struct/Structs using directly reflect set 2020-11-15 15:13:40 +08:00
Jack
b178210a31 fix issue in gconv.Map for embedded struct attributes converting 2020-11-10 09:53:12 +08:00
John
e06b62ecf2 add default value from struct tag for ghttp.Request 2020-11-08 15:44:04 +08:00
John
d178102f82 remove third party package 'structs'; improve performance for package internal/structs 2020-11-08 14:25:17 +08:00
John
e1dd5cce7d improve performance for gconv.Struct 2020-11-08 00:06:05 +08:00
John
fa8cc1d3f4 improve gutil.Keys 2020-11-06 21:21:09 +08:00
John
13330658cb add function Keys/Values for package gutil 2020-11-05 23:32:56 +08:00
John
9f04e46166 mark gconv.StructDeep/StructsDeep deprecated 2020-11-05 23:02:29 +08:00
John
176dcdc7cc fix issue in gconv.Struct for json string parameter 2020-11-05 22:19:34 +08:00
John
5999f22f76 fix issue in embeded struct validation for package gvalid 2020-11-04 20:04:54 +08:00
Jack
cb422f043e improve slice converting for package gconv 2020-10-30 22:26:26 +08:00
Jack
4ae89dc9f6 improve package internal/structs 2020-10-30 22:04:34 +08:00
Jack
4f6f07db1d temporaryly remove guid.N 2020-10-30 14:31:31 +08:00
Jack
cd981c7294 improve snowflake number generating for package guid 2020-10-30 12:47:39 +08:00
Jack
557d2967fa improve snowflake number generating for package guid 2020-10-30 12:40:35 +08:00
Jack
a7a70636dd improve snowflake number generating for package guid 2020-10-30 12:33:56 +08:00
Jack
2215661f89 comment update for package guid 2020-10-30 12:24:18 +08:00
Jack
a22b590b43 comment update for package guid 2020-10-30 12:22:09 +08:00
Jack
1b0b209662 add unique number generating for package guid 2020-10-30 12:11:21 +08:00
John
8e380c0d9d improve package gtime/gconv for map converting 2020-10-25 11:33:30 +08:00
John
0caf4bfcec improve gconv.StructDeep 2020-10-25 10:47:47 +08:00
Jack
ab689a7792 improve gutil.Dump 2020-10-22 09:24:57 +08:00
Jack
846646d92d improve json validation rule for package gvalid 2020-10-22 09:11:38 +08:00
Jack
2eb2b89432 improve gconv.Struct* by doing the converting using json.Unmarshal if given params is json string/bytes 2020-10-21 14:09:16 +08:00
Jack
43441a8218 allow custom validation rule validate empty or nil values 2020-10-21 00:08:36 +08:00
Jack
77f7884604 add function gutil.Try/g.Try;improve error string for gconv.Struct 2020-10-20 13:36:43 +08:00
John
0509e41198 recover number for unit testing case of package gconv 2020-10-10 00:04:55 +08:00
John
849874a247 improve adapter definition for package gcache 2020-10-09 20:59:49 +08:00
John
3f6510bae7 fix issue in gconv.Struct 2020-09-29 23:47:37 +08:00
John
a585a26c39 improve custom rule function type for package gvalid 2020-09-29 23:25:20 +08:00
John
3617e51c01 improve gdb.Model.ScanList 2020-09-28 23:52:02 +08:00
John
37b286eaa4 improve performance for gconv.Maps;comment update for package gcache 2020-09-27 22:35:02 +08:00
John
262f27748c improve custom validation rule feature for package gvalid 2020-09-22 08:45:22 +08:00
John
a29aef7e1c improve package gvalid for custom rule 2020-09-21 23:51:30 +08:00
John
86433cef25 improve gtime.New, gconv.String 2020-09-18 23:59:49 +08:00
John
ad943c5e02 improve gjson.New by using gconv.MapDeep for map/struct 2020-09-07 19:44:11 +08:00
Jack
acc0846cf3 fix issue in unit testing case of package gvalid 2020-08-24 22:26:12 +08:00
John
676e904ec6 improve package gvalid 2020-08-21 00:00:00 +08:00
John
49aa5c61bc improve package gvalid 2020-08-20 23:37:02 +08:00
John
a2272b852c improve package gvalid 2020-08-20 23:28:58 +08:00
John
1fa77630f9 improve package gvalid 2020-08-20 23:28:10 +08:00
John
a841c4cc05 improve package gvalid 2020-08-20 23:25:36 +08:00
Jack
19937cb75d improve MapDeep for package gconv 2020-08-11 20:13:47 +08:00
Jack
fa96c18308 add function MapOmitEmpty for package gutil 2020-08-08 09:53:32 +08:00
john
9cff2bd10f add function ParseDuration and time unit 'd' support for package gtime 2020-07-28 22:46:15 +08:00
john
f489e6273e fix issue 819 2020-07-25 10:54:48 +08:00
john
d9da51933d improve gconv.Struct 2020-07-23 21:15:54 +08:00
john
205f98cfeb improve gconv.Struct for interface UnmarshalValue 2020-07-15 23:30:07 +08:00
john
05cc0c4644 improve gconv.Struct for nil attribute interface 2020-07-14 21:34:29 +08:00
john
e1c0a92e60 improve the performance when converting struct that implements UnmarshalValue 2020-07-13 23:51:36 +08:00
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