Commit Graph

249 Commits

Author SHA1 Message Date
黄骞
9f12673631
add ut cases for package gconv (#2272)
* improve gconv.go code coverage

* improve gconv_convert.go code coverage

* improve gconv_float.go code coverage

* improve gconv_map.go code coverage

* improve gconv_maps.go code coverage

* improve gconv_maptomap.go code coverage

* improve gconv_maptomaps.go code coverage
2022-11-07 17:53:51 +08:00
houseme
1793bf0863
add golangci feature to guarantee codes quality (#2229) 2022-11-01 20:12:21 +08:00
zhonghuaxunGM
ce8b536fca
Parse database empty json field to empty object( fix issue 2105 ) (#2213)
* Parse database empty json field to empty object( fix issue 2105 )

* fix issue #2105

Co-authored-by: Xu <zhenghao.xu>
Co-authored-by: John Guo <john@johng.cn>
2022-10-18 19:13:55 +08:00
John Guo
8e5a03f6c9
add Ptr* functions for package gconv (#2206)
* add Ptr* functions for package gconv

* delete binary file

* revert changes for file gconv.go

Co-authored-by: houseme <housemecn@gmail.com>
2022-10-18 19:13:14 +08:00
John Guo
5efa5ebd2f
fix issue #1946 (#2194)
* fix issue #1946

* fix issue #1946
2022-10-12 20:31:03 +08:00
daguang
a0619f7ff0
remove uint repeat conversion (#2096)
Co-authored-by: houseme <housemecn@gmail.com>
2022-08-26 15:45:41 +08:00
daguang
299573dd19
fixed inconsistent results when converting float64(NaN) to int/uint on multiple platforms (#2064) 2022-08-15 21:51:34 +08:00
houseme
6aa5c2b2ef
Fix/1748 issues #1748 (#1817) 2022-05-23 22:09:11 +08:00
John Guo
583d576cdb remove octal number converting for gconv.Int*/Uint* functions; fix issue #1733 2022-05-09 21:26:42 +08:00
John Guo
d260de15ba fix issue #1750 2022-04-18 20:57:41 +08:00
John Guo
2d6fcf5d06 fix issue #1708 2022-04-12 12:09:09 +08:00
John Guo
55e0262c37 improve package gconv 2022-04-11 21:54:23 +08:00
John Guo
f1fee72d6d fix issue #1700 2022-04-08 18:11:17 +08:00
John Guo
372bae4799 fix issue in missing first result column when in select cache scenario 2022-03-31 15:42:12 +08:00
John Guo
707dc6b346 add xextensions feature for package goai 2022-03-29 20:31:00 +08:00
John Guo
97b8f0f781 improve recursilve validation feature for package gvalid 2022-03-17 20:27:59 +08:00
John Guo
d8d9996464 fix issue #1662 2022-03-11 10:24:42 +08:00
John Guo
546b6b1724 t.Assert(err, nil) -> t.AssertNil(err) 2022-03-10 11:36:40 +08:00
John Guo
456697ea99 improve cli command install 2022-02-28 17:48:52 +08:00
John Guo
ee614f9c6b fix issue #1563 2022-02-23 10:27:31 +08:00
John Guo
d9c1e1f576 improve package gconv/cli 2022-02-22 20:19:41 +08:00
John Guo
afa58ed45b fix issue #1227 #1617 2022-02-22 10:43:31 +08:00
John Guo
00ccce7bb8 fix issue #1607 2022-02-17 22:02:51 +08:00
John Guo
2461ef9f29 fix issue #1597 2022-02-17 11:46:35 +08:00
John Guo
a5cc03ff25 fix issue #1563 2022-02-16 00:47:23 +08:00
John Guo
2428b27168 fix issue #1488 2022-02-15 00:21:05 +08:00
John Guo
d4b502f14e fix issue #1571 2022-01-15 22:15:10 +08:00
John Guo
6e12aa4bf7 fix issue #1568 2022-01-13 20:49:26 +08:00
Anonymous
343985ad12 Add tests to highlight problem cases previously failing 2022-01-10 18:53:32 +00:00
Anonymous
4cdddbd6e0 Recurse map fields inside structs 2022-01-04 19:22:18 +00: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
20c0e6d68f error message update for package gconv 2021-12-17 17:28:02 +08:00
John Guo
b27259aded fix issue converting empty map[string]string to map[string]interface{} 2021-12-17 17:22:55 +08:00
John Guo
7b22355abb expose package internal/structs as os/gstructs; add package gtag for custom tag storage feature 2021-11-24 16:17:50 +08:00
John Guo
0622b517c5 command object feature for package gcmd 2021-11-23 20:26:55 +08:00
John Guo
551ceef0e1 improve package gconv 2021-11-19 15:21:46 +08:00
John Guo
939a9267c6 improve slice converting for package gconv 2021-11-16 00:41:47 +08:00
houseme
d864120353 Improved import, by group improt. 2021-11-13 23:30:31 +08:00
John Guo
42c4b32720 add gconv.ScanList 2021-11-07 00:16:14 +08:00
John Guo
4acc0e9876 gconv.ScanList 2021-11-05 01:15:11 +08:00
John Guo
485706a676 improve ScanList feature for package gdb 2021-11-05 01:07:06 +08:00
John Guo
f887c9f44b improve package gmeta 2021-10-12 17:52:31 +08:00
John Guo
1bc0635f8b version 2 2021-10-11 21:41:56 +08:00
John Guo
337c2d0953 filter issue in internal/structs 2021-10-06 11:10:35 +08:00
John Guo
71189c8fb0 improve converting performance for equal type converting 2021-10-03 00:58:57 +08:00
John Guo
dcafba8a2d add package goai for OpenAPIv3 support 2021-10-02 14:52:28 +08:00
John Guo
993bf897cf remove deprecated functions; refract package gjson 2021-09-27 22:47:39 +08:00
jianchenma
01a3dd1eb0 add function gerror.HasStack; rename all api* interfaces to i* 2021-09-17 19:26:56 +08:00
John Guo
ac78b2fa50 fix ci issue 2021-09-15 21:46:58 +08:00
John Guo
68e760d13a fix issue @1380 2021-09-15 21:17:45 +08:00
John Guo
73d2b7ed06 fix issue #1387 2021-08-30 22:26:02 +08:00
John Guo
abc8e62d58 add package gcode and improve error implements for package gerror 2021-08-24 21:18:59 +08:00
John Guo
8f4ce91361 improve condition parameter of struct by sequence for package gdb 2021-08-19 14:09:31 +08:00
John Guo
f03f56ba4e improve gconv.Struct for map attribute converting 2021-08-19 11:28:25 +08:00
John Guo
457d552fa0 add UnmarshalJSON interface support for package gconv 2021-08-17 16:51:29 +08:00
John Guo
be2fcf7f57 add UnmarshalJSON interface support for package gconv 2021-08-17 16:30:47 +08:00
John Guo
ad6c4f5245 improve session storage for package gsession 2021-08-16 21:47:45 +08:00
John Guo
4c54b1cfbc improve errcode feature for package gerror 2021-08-04 20:50:45 +08:00
John Guo
0ddacdd7e2 add error code for components 2021-07-20 23:02:02 +08:00
John Guo
d109706ad3 unify error package to gerror 2021-06-26 18:34:26 +08:00
John Guo
8210f40469 improve Record/Result converting for package gdb 2021-06-26 16:46:36 +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
cca438d77f fix issue #1209 2021-06-10 20:17:53 +08:00
John Guo
eb723e47c2 fix issue in gconv.MapDeep 2021-06-05 08:58:54 +08:00
John Guo
3e6b9864d5 fix issue #1256 2021-06-01 19:47:02 +08:00
John Guo
fab6c4048d comment update 2021-05-25 22:16:55 +08:00
John Guo
5903eb8ceb fix issue #1254 2021-05-25 09:56:23 +08:00
John Guo
0dfd968824 comment update for package gconv/gproc 2021-05-17 21:26:39 +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
e3ebc908bb improve package gconv 2021-03-18 15:21:05 +08:00
John Guo
a3fa10d820 great! completed 'with' feature for package gdb 2021-02-09 18:00:43 +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
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
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
jflyfox
0a99bb9a7d improve gconv.Interfaces 2020-12-14 16:56:41 +08:00
John Guo
84fef8dea3 add error code feature for package gerror 2020-12-10 23:33:24 +08:00
jflyfox
569a953b43 inprove package gconv for empty string converting to number array 2020-12-09 13:39:09 +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
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
c56f4eabca inprove gconv.Interfaces for struct type 2020-11-29 21:34:28 +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
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
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
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