Commit Graph

116 Commits

Author SHA1 Message Date
guangwu
e816ab05de
refactor: code optimization (#2667) 2023-05-25 21:58:11 +08:00
HaiLaz
55690f3738
improve unit testing cases coverage to 80%+ (#2480) 2023-03-07 21:27:23 +08:00
HaiLaz
adf90c876f
improve unit testing cases (#2468) 2023-02-23 10:07:40 +08:00
Jinhongyu
14d2d747f6
add minus of start parameter support for gstr.Substr, like the substr function in PHP (#2297)
* Make the substr like the substr in PHP

Make the substr like the substr in PHP

* Update gstr_z_unit_test.go

* Update gstr_z_unit_test.go

* Make the SubStrRune like the mb_substr in PHP

Make the SubStrRune like the mb_substr in PHP

* Update gstr_z_unit_test.go

* Update gstr_z_unit_test.go

* Update gins_z_unit_view_test.go

* Update gview_z_unit_test.go
2022-11-16 10:10:59 +08:00
John Guo
7d1a508ea9
improve ut case for package gcache/gpool (#2290)
* improve ut case for package gcache/gpool

* up
2022-11-12 10:49:48 +08:00
wei.wei
2e8d8f63ff
fix IsSubDomain method error (#2283)
Co-authored-by: weiwei3 <weiwei3@37.com>
2022-11-10 19:47:43 +08:00
houseme
1793bf0863
add golangci feature to guarantee codes quality (#2229) 2022-11-01 20:12:21 +08:00
John Guo
e00d3ff7ff
fix issue in gstr.Nl2Br (#2028) 2022-07-25 20:54:42 +08:00
John Guo
d7faae0531
add gstr.IsGNUVersion (#1937) 2022-06-24 16:54:24 +08:00
houseme
ab82599ee2
Feature/polaris feat: Add Polaris support (#1797) 2022-05-18 22:24:40 +08:00
John Guo
2680666f52 improve gstr.WordWrap 2022-05-13 14:18:51 +08:00
John Guo
c256d2d4af fix issue in gstr.RepliaceI; add command gen service for cli 2022-04-24 22:23:56 +08:00
John Guo
119d8bf98c improve command gf run 2022-04-07 22:07:47 +08:00
John Guo
546b6b1724 t.Assert(err, nil) -> t.AssertNil(err) 2022-03-10 11:36:40 +08:00
John Guo
220ed74ad1 fix gstr.IsNumeric 2022-01-17 19:42:21 +08:00
John Guo
fab17f89c4 fix issue in ut for package gsha1/gclient/ghttp/gregex 2021-12-23 00:34:02 +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
huangqian
739490c62b revert file 2021-12-22 20:23:24 +08:00
huangqian
a9647a7bf3 tidy gstr file 2021-12-21 23:24:38 +08:00
John Guo
de17302ad0 fix issue in gstr.ReplaceI 2021-12-19 21:04:35 +08:00
huangqian
ff2e9b568b Implemented gstr Example
1. PrefixArray 2.SubStrFrom 3.SubStrFromEx 4.SubStrFromR 5.SubStrFromREx
2021-12-15 21:15:34 +08:00
huangqian
e28be8d114 reorder the sample function 2021-12-14 23:54:15 +08:00
John Guo
01930c9899 improve package gcmd 2021-12-08 19:50:28 +08:00
xuweiwei
f56c2ed356 fix a comment error in IsSubDomain
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
2021-12-03 17:19:42 +08:00
John Guo
0c62c62a7a improve example for package gstr 2021-11-18 22:13:12 +08:00
iamyl
7d7ceec1d6
Merge branch 'gogf:master' into master 2021-11-18 08:54:13 +08:00
iamyl
290200a490
修改示例表现形式 2021-11-18 06:26:27 +08:00
John Guo
6ad7baeb2c remove gsmtp 2021-11-16 23:39:45 +08:00
John Guo
266a4214c5 fix example for package gregex 2021-11-16 21:40:04 +08:00
John Guo
67a479a2cd remove .example 2021-11-16 21:37:59 +08:00
houseme
be03b3cdda Improved import, by group improt. 2021-11-13 23:23:55 +08:00
iamyl
741a790660
修改了示例的表现格式 2021-11-12 01:37:27 +08:00
iamyl
4b0a8f81d5
修改了ExampleEqual 示例的对比值 2021-11-10 01:47:03 +08:00
iamyl
f889df8d50
go fmt 格式化 2021-11-10 01:27:59 +08:00
iamyl
836be74d13
修改示例中结果为map输出的地方增加May 2021-11-10 01:12:22 +08:00
iamyl
7f24f0637b
修改了部分示例 2021-11-10 01:03:04 +08:00
John Guo
05bb81cd71 Merge branch 'master' of https://github.com/gogf/gf 2021-11-07 00:16:52 +08:00
John Guo
42c4b32720 add gconv.ScanList 2021-11-07 00:16:14 +08:00
John Guo
e715ce0625
Merge pull request #1450 from DGuang21/feature-regex-example
add examples for package gregex
2021-11-06 11:35:15 +08:00
iamyl
0aabb7d990
update package gstr 2021-11-06 04:41:08 +08:00
daguang
b036767fc0 📝 add example 2021-11-06 01:47:00 +08:00
daguang
b967cf6224 📝 add example 2021-11-06 01:16:51 +08:00
daguang
1a596fe84d 📝 add example 2021-11-06 00:54:10 +08:00
daguang
64fa8d5282 📝 add example 2021-11-06 00:49:15 +08:00
daguang
99d2186c8c 📝 add example 2021-11-06 00:06:56 +08:00
daguang
24f759e00e 📝 add example 2021-11-05 23:56:08 +08:00
iamyl
84046a060a
Package gstr's All Example 2021-11-05 10:50:15 +08:00
iamyl
a27eec7752
Delete gstr_z_example_test.go 2021-11-05 10:48:13 +08:00
iamyl
4539a9a4ab
修改gstr测试用例包名为gstr_test 2021-11-05 10:42:44 +08:00
iamyl
cffa098373
更新gstr为gf-v2版本 2021-11-05 10:35:01 +08:00