Commit Graph

220 Commits

Author SHA1 Message Date
huangqian
5882a9dc21 Merge branch 'gjson_example' 2022-02-17 20:30:26 +08:00
huangqian
144249fcff Implemented gjson Example
1.SetSplitChar
2022-02-17 20:29:38 +08:00
John Guo
2461ef9f29 fix issue #1597 2022-02-17 11:46:35 +08:00
huangqian
f8f13bd905 Implemented gjson Example
1.Unmarshal 2.Encode 3.MustEncode 4.EncodeString 5.MustEncodeString 6.Decode 7.DecodeTo 8.DecodeToJson
2022-02-16 22:38:25 +08:00
huangqian
33367fd3ee Implemented gjson Example
1.ExampleValid 2.ExampleMarshal 3.ExampleMarshalIndent
2022-02-15 23:02:48 +08:00
huangqian
3a1cd3d588 Merge branch 'master' of https://github.com/gogf/gf into gjson_example 2022-02-15 22:15:33 +08:00
huangqian
4fc27f6509 Implemented gjson Example
1. ExampleLoad 2.ExampleLoadJson 3.ExampleLoadXml 4.ExampleLoadIni 5.ExampleLoadYaml 6.ExampleLoadToml
7.ExampleLoadContent 8.ExampleLoadContentType 9.ExampleIsValidDataType
2022-02-15 22:08:51 +08:00
John Guo
5f2047d61b fix issue in configuration StdoutColorDisabled for package glog; rename TempDir to Temp for package gfile 2022-02-14 14:50:25 +08:00
huangqian
8cb6086f73 Implemented gjson Example
1. New 2.NewWithTag 3.NewWithOptions
2022-02-12 17:27:32 +08:00
John Guo
04eb654133 add error stack for internal error printing 2022-01-28 14:51:49 +08:00
John Guo
e517bf7b0e improve details for package gjson/gtcp/gudp 2022-01-22 15:45:38 +08:00
John Guo
c75cce0378 fix issue in package gjson for interface assertion of nil Json 2022-01-21 12:38:06 +08:00
John Guo
3bbbe1db9c change pointer receiver that implements interface MarshalJSON to struct receiver for all packages 2022-01-19 16:55:57 +08:00
John Guo
56f88f759a add buildin function yamli for package gview 2022-01-17 17:10:44 +08:00
John Guo
c72a9f2e1e add buildin functions xml/ini/yaml/toml for package gview 2022-01-17 15:55:45 +08:00
John Guo
d4b502f14e fix issue #1571 2022-01-15 22:15:10 +08:00
John Guo
4943c3a9e0 add UT cases for package gjson 2022-01-15 20:25:29 +08:00
John Guo
58290ec9ea fix issue in package ghash 2022-01-15 20:17:40 +08:00
John Guo
805f60efa1 improve package ghash 2022-01-13 21:31:23 +08:00
John Guo
6ded700f92 add options for Decode/DecodeTo/DecodeToJson functions of package gjson 2022-01-13 12:09:04 +08:00
John Guo
c2f2ad7a28 README updates 2022-01-12 20:42:11 +08:00
John Guo
079cf9d7b8 add function EncodeString for package gjson 2021-12-26 16:16:16 +08:00
John Guo
ca5c0cc84d add MustEncodeString for package gjson 2021-12-26 14:42:09 +08:00
John Guo
984e5f98f7 add MustEncode for package gjson 2021-12-26 11:26:36 +08:00
John Guo
48c5c1e5a8 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-23 00:09:00 +08:00
John Guo
ce93b625d4 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-21 22:59:14 +08:00
John Guo
7e81600772 improve package gjson 2021-12-20 00:32:23 +08:00
John Guo
712416f490 improve gutil.Dump 2021-11-18 15:20:37 +08:00
John Guo
57ccc13e0c unit testing files renaming 2021-11-17 23:20:58 +08:00
houseme
bb4f72d1ec improve code Introduce according to grouping 2021-11-16 19:43:02 +08:00
houseme
e86ee052cb improve code import 2021-11-16 19:29:02 +08:00
houseme
857ca4d978 URL encode and decode 2021-11-16 00:59:15 +08:00
houseme
0135d23b16 URL-encode according to RFC 3986 2021-11-16 00:56:38 +08:00
houseme
ff8633231f improve code 'if block ends with a return statement, so drop this else and outdent its block (golint)' 2021-11-16 00:26:10 +08:00
houseme
be03b3cdda Improved import, by group improt. 2021-11-13 23:23:55 +08:00
John Guo
1df52637e8
Merge pull request #1429 from osgochina/master 2021-11-03 22:38:21 +08:00
John Guo
e5c6d3f777 fix issue in unit testing cases for package gjson 2021-10-28 23:46:24 +08:00
John Guo
8ef4f68215 add IgnoreEmptySliceWhere feature for package gdb; add OriginValueAndKind/OriginTypeAndKind functions for package internal/utils 2021-10-28 23:18:23 +08:00
John Guo
4717e01708 replace gopkg.in/yaml.v2 with gopkg.in/yaml.v3 2021-10-25 19:17:56 +08:00
John Guo
977780736f improve gutil.Dump 2021-10-21 22:07:43 +08:00
John Guo
fa5499373a replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg 2021-10-21 18:22:47 +08:00
John Guo
1bc0635f8b version 2 2021-10-11 21:41:56 +08:00
ClownFish
5a5809bd95 修复gini的bug。
当ini的配置值中含有"="时候,不能正确解析。
2021-10-08 16:17:58 +08:00
John Guo
750972e7c6 fix unit testing cases 2021-09-28 19:04:36 +08:00
John Guo
a9d7dc68a3 remove usage of package gparser 2021-09-27 23:05:46 +08:00
John Guo
993bf897cf remove deprecated functions; refract package gjson 2021-09-27 22:47:39 +08:00
John Guo
df09d8c604 refract package ghttp/gredis/glog 2021-09-27 21:27:24 +08:00
John Guo
c3b3258194 update dependencies clbanning/mxj,grokify/html-strip-tags-go,gopkg.in/yaml to stable version 2021-09-22 19:43:52 +08:00
jianchenma
01a3dd1eb0 add function gerror.HasStack; rename all api* interfaces to i* 2021-09-17 19:26:56 +08:00
John Guo
727f58a24b remove usage of gconv.Unsafe* functions internally to avoid unexpected errors 2021-09-14 19:30:20 +08:00
John Guo
99b6085235 Merge branch 'master' of https://github.com/gogf/gf 2021-09-13 16:43:20 +08:00
John Guo
006fb79967 improve package gjson; replace fmt.Errorf to gerror; improve examples for package gdb 2021-09-13 16:43:09 +08:00
houseme
adee4ac8dd fix #1389 2021-08-29 12:23:22 +08:00
John
257897763d Merge branch 'master' of https://github.com/gogf/gf 2021-08-25 00:54:47 +08:00
John Guo
a47699bf6e fix issue in unit testing case for package gjson 2021-08-24 21:34:14 +08:00
John Guo
abc8e62d58 add package gcode and improve error implements for package gerror 2021-08-24 21:18:59 +08:00
John
ef36cf8446 fix issue in example of package gjson 2021-08-20 23:15:48 +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
d109706ad3 unify error package to gerror 2021-06-26 18:34:26 +08:00
John Guo
50ffaef33f add context for intlog/gsession;improve struct/structs converting for package gconv 2021-06-26 16:23:54 +08:00
John Guo
c25f88293b unify command or enviroment key names for packages 2021-06-26 12:08:18 +08:00
John Guo
7003c284d0 replace json.Unmarshal with json.UnmarshalUseNumber for packages 2021-05-15 22:38:07 +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
68247acab1 improve package gjson/gvar 2021-01-19 14:26:17 +08:00
John Guo
093034acd1 copyright comment update 2021-01-17 21:46:25 +08:00
John Guo
c685876e6f improve package gparser 2020-12-14 21:22:04 +08:00
John Guo
751a567e84 add Is* functions for package gvar 2020-12-14 18:54:14 +08:00
jianchenma
9b4d2d9172 fix issue in unit testing case for package gjson/gparser 2020-12-04 15:41:26 +08:00
John
8c0a905a9f improve package gconv for custom type converting 2020-12-01 15:57:06 +08:00
Jack
baf51bc68f merge develop 2020-11-18 10:57:14 +08:00
John
1a31792c14 add SpecialCharsMapOrStruct for package ghtml 2020-11-15 16:49:44 +08:00
John Guo
889e7914e2
Merge pull request #983 from coolhihi/master
Update gjson_api_new_load.go to make gjson work when sometimes the xml end with space or `\n`
2020-11-12 18:41:36 +08:00
John
d178102f82 remove third party package 'structs'; improve performance for package internal/structs 2020-11-08 14:25:17 +08:00
COoL
4df47be521 Make it work when the xml content end with \s* 2020-11-07 18:32:50 +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
0caf4bfcec improve gconv.StructDeep 2020-10-25 10:47:47 +08:00
John
1671391195 comment updates 2020-09-21 22:56:48 +08:00
John
28b0d59c61 improve package gcfg/gjson for data loading 2020-09-21 21:30:58 +08:00
John
ad943c5e02 improve gjson.New by using gconv.MapDeep for map/struct 2020-09-07 19:44:11 +08:00
Jack
efca9b18a8 improve content type checks for package gjson 2020-08-12 20:53:47 +08:00
Jack
607821ecbc add function LoadContentType for package gjson 2020-08-12 20:38:48 +08:00
Jack
32e4d64ddb improve package gjson for automatic content type checking 2020-08-12 00:11:25 +08:00
Jack
46e45ca84b improve package gjson for automatic content type checking 2020-08-11 23:46:21 +08:00
Jack
fcb13bd8ee improve package gjson for automatic content type checking 2020-08-11 23:36:40 +08:00
Jack
eacad9b453 improve package gjson for automatic content type checking 2020-08-11 23:22:09 +08:00
Jack
ed479e2a13 improve package gjson for automatic content type checking 2020-08-11 23:20:22 +08:00
Jack
4d501fd2f4 improve function Set for package gjson 2020-08-10 23:03:35 +08:00
chenall
937f8e6919 fix configfile with UTF8-BOM issue 2020-07-25 10:57:40 +08:00
john
4dd12434b7 add file cache feature for package gfile and remove package gfcache 2020-07-16 12:31:13 +08:00
john
64c99b9871 add configuration updating feature for package gcfg 2020-07-15 00:07:07 +08:00
John
46bdde9265 revert gvar.Var from interface to struct 2020-06-29 13:40:19 +08:00
John
2c0cfa24b0 fix issue in package gjson for struct to map converting 2020-06-18 20:40:24 +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
4d38b508a3 improve gvar by changig gvar.Var from type struct to interface 2020-06-16 17:38:05 +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
6889542801 improve package guid 2020-05-27 11:26:05 +08:00
John
4d9db6edf0 improve package gconv for map converting 2020-05-18 20:58:19 +08:00
john
caead810e2 add package guid; improve performance of package grand 2020-05-16 21:56:31 +08:00