Commit Graph

416 Commits

Author SHA1 Message Date
John Guo
a4240bdfb7 improve struct validation for package gvalid 2021-05-11 20:57:30 +08:00
John Guo
2e38416e12 improve struct embedded association case of with feature for package gdb 2021-05-11 20:00:50 +08:00
John Guo
034a3f1808 improve struct validation 2021-05-11 19:20:39 +08:00
jflyfox
524e3bedc7 improve empty value validation for required-with* patterns for package gvalid 2021-04-26 20:37:36 +08:00
John Guo
c4fc9f9618 fix issue #1204: improve validation support for time value, eg: gtime.Time/*gtime.Time, time.Time/*time.Time. 2021-03-30 16:06:20 +08:00
John Guo
9c70fe3be8 add more unit testing case for package gvalid 2021-03-30 15:25:26 +08:00
John Guo
6deb817fd0 fix issue in unit testing case for package gpage 2021-03-23 17:58:09 +08:00
John Guo
482e093331 add map/[]map converting support for gconv.Scan;improve gconv.MaptoMaps 2021-03-23 17:53:20 +08:00
jianchenma
e3ebc908bb improve package gconv 2021-03-18 15:21:05 +08:00
John
41f2138b39 fix issue of overflow in grand.D 2021-03-11 23:29:39 +08:00
John Guo
58362ad143 add grand.D for random time.Duration;add checking and removing session files for package gsession 2021-03-11 20:05:08 +08:00
John Guo
20f2a6c003 add recursive validation feature of struct attribute for package gvalid for #1165 2021-03-10 23:28:34 +08:00
John Guo
0d4c1c47d5 improve package grand 2021-03-10 21:19:11 +08:00
John Guo
d330afdd36 add required* rules checks for map/slice 2021-02-24 01:20:06 +08:00
John Guo
a3fa10d820 great! completed 'with' feature for package gdb 2021-02-09 18:00:43 +08:00
John Guo
acf47f3907 orm with feature 2021-02-08 17:57:21 +08:00
John Guo
b4d5335e43 add package gmeta for embedded struct of meta data feature 2021-02-07 21:23:09 +08:00
jianchenma
8ae0bd148b improve ScanList for package gdb; improve Structs for package gconv 2021-02-05 17:42:05 +08:00
jianchenma
72251b880a improve package gconv for slice converting 2021-02-05 14:44:20 +08:00
jianchenma
813841bb68 rename GetWithEnv to GetOptWithEnv for packge gcmd 2021-02-02 15:16:09 +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
6f968a125e improve time converting for package gconv 2021-01-17 21:39:17 +08:00
John Guo
5c9cee7fb9 improve package gconv 2021-01-17 20:56:38 +08:00
John Guo
2d67d31f90 improve benckmark for package grand 2021-01-13 23:38:10 +08:00
jianchenma
73c68e48a1 improve package gvalid 2021-01-12 10:46:39 +08:00
jflyfox
b6b1bc8813 improve time converting for package gconv 2021-01-04 19:22:55 +08:00
John Guo
d9bd3153ea improve time parsing for package gtime 2021-01-03 23:37:45 +08:00
jflyfox
036bc03ebf improve error handling for package gconv 2020-12-30 13:27:27 +08:00
John Guo
bdf23ef48f fix issue of error code lost in middleware handling for package ghttp 2020-12-30 12:56:24 +08:00
jflyfox
4e79b90863 add gutil.SliceToMap 2020-12-25 15:34:54 +08:00
John Guo
9f5a51e854 fix Strings/String function for package gvalid, issue:1077 2020-12-23 21:13:47 +08:00
John Guo
7db1cfa898 add gutil.MapToSlice/StructToSlice 2020-12-16 00:50:42 +08:00
jflyfox
0a99bb9a7d improve gconv.Interfaces 2020-12-14 16:56:41 +08:00
jflyfox
102e2d07d9 improve package gcfg for automatic configuration file type checks; change const variables for package gcfg/glog/gtimer/gmode/gins/gi18n 2020-12-14 13:02:08 +08:00
John Guo
84fef8dea3 add error code feature for package gerror 2020-12-10 23:33:24 +08:00
John Guo
b7e41ec32c improve package gvalid 2020-12-09 21:00:30 +08:00
jflyfox
569a953b43 inprove package gconv for empty string converting to number array 2020-12-09 13:39:09 +08:00
John Guo
d2b65f0f91 add gcmd.GetWithEnv/genv.GetWithCmd; remove package cmdenv; 2020-12-04 23:44:54 +08:00
jianchenma
57a82ebcc0 improve gconv.Struct 2020-12-04 18:17:11 +08:00
Jack
ce9a0555c5 improve gconv.Interfaces by adding support for type map as its parameter 2020-12-04 14:33:47 +08:00
Jack
5171250a9d improve gutil.Keys,gdb.Model.Fields,internal/structs 2020-12-04 14:22:50 +08:00
John
8c0a905a9f improve package gconv for custom type converting 2020-12-01 15:57:06 +08:00
Jack
5a0326f666 fix issue in unit testing case for package gconv 2020-11-30 09:07:44 +08:00
John
32101189a2 Merge branch 'master' of https://github.com/gogf/gf into develop 2020-11-29 21:46:36 +08:00
John
c56f4eabca inprove gconv.Interfaces for struct type 2020-11-29 21:34:28 +08:00
sunmoon
fa47b0306d Add 172-segment verification rules, add loose mobile number verification rules. 2020-11-28 12:23:18 +08:00
John
c02bf715c5 improve gutil.ListItemValues/ListItemValuesUnique supporting retrieving values from slice attributes 2020-11-26 21:13:44 +08:00
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