Commit Graph

874 Commits

Author SHA1 Message Date
John Guo
9efc2894d4 improve UT cases for package gtime 2022-01-19 18:18:30 +08:00
John Guo
07c5ce0bbc improve UT cases for package gtime 2022-01-19 17:26:39 +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
d7b94428ae fix issue in json marshal for package egtime 2022-01-19 16:44:58 +08:00
John Guo
033e2c1d78 fix issue in rules of gmeta.Meta for package gvalid 2022-01-18 15:43:12 +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
6468d55a81 add absolute file path support for package gcfg/gview 2022-01-14 17:16:38 +08:00
John Guo
fe93d7b332 add GetRegisteredRuleMap function, add internal logging for rule overwrite situation of package gvalid 2022-01-14 16:46:25 +08:00
John Guo
8731123030 add StdoutColorDisabled configuration for package glog 2022-01-13 15:22:27 +08:00
John Guo
9486f6e7e9 improve package gcmd/ghttp 2022-01-12 19:39:38 +08:00
John Guo
ee25d696eb improve package gcmd 2022-01-01 20:20:49 +08:00
John Guo
c17530a6db improve command not found error for package gcmd 2022-01-01 19:57:43 +08:00
John Guo
c1586a3b81 improve package gcmd 2022-01-01 00:58:10 +08:00
John Guo
09f9d1cb7a improve package gcmd 2022-01-01 00:18:50 +08:00
John Guo
fd5b0fdf49 comment update 2021-12-30 00:20:38 +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
cafd9098d7 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-22 22:22:42 +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
63d384b676 help content update for pakcga egcmd 2021-12-18 23:27:41 +08:00
John Guo
57a1a7607a improve package gsession 2021-12-18 17:14:33 +08:00
John Guo
31772d5eac add fnction Mustremove for package gsession 2021-12-18 14:13:36 +08:00
John Guo
77422f71f7 add fnction MustSet/MusetSetMap for package gsession 2021-12-18 14:10:55 +08:00
John Guo
b9907ae3ba improve package gview for default folder searching 2021-12-17 21:38:10 +08:00
John Guo
656d1bbbd6 improve content type response for ghttp.Server 2021-12-17 17:42:18 +08:00
John Guo
3658faafae improve help content printing for package gcmd 2021-12-17 15:47:48 +08:00
John Guo
f3c25ecba9 fix issue in ut for package gcache/gfsnotify 2021-12-17 12:11:40 +08:00
John Guo
b9d6ac26d1 rename cache function from func() (interface{}, error) to func(ctx context.Context) (value interface{}, err error) for package gcache; add cache for function Tables of gdb.Core; improve Where condition with prefix handling for package gdb 2021-12-17 11:46:05 +08:00
John Guo
4de74464ac fix issue in unit testing case for package gctx/glog 2021-12-16 23:38:40 +08:00
John Guo
aee52fd56e enable OpenTelemetry in default for some core components 2021-12-16 23:09:37 +08:00
John Guo
f4e8eff813 improve help content printing for package gcmd 2021-12-16 12:45:00 +08:00
John Guo
36e05561cc improve Export feature for package gres 2021-12-14 23:49:08 +08:00
John Guo
bc2ce19876 add Export feature for package gres 2021-12-14 23:01:20 +08:00
John Guo
4c7e409e61 improve argument/option printing content for package gcmd 2021-12-14 22:34:06 +08:00
John Guo
bb1a95fff8 fix issue in gproc.ShellExec 2021-12-14 21:01:36 +08:00
John Guo
7d84ab761b improve package gcmd for help content printing 2021-12-13 20:30:56 +08:00
John Guo
80daed6bdf add repeated checks for command name, argument name and short name for package gcmd 2021-12-13 20:18:13 +08:00
John Guo
1015fb5338 improve package gcmd 2021-12-13 19:59:41 +08:00
John Guo
a1fb5f18dc improve package gcmd 2021-12-11 01:11:40 +08:00
John Guo
780d06b19e improve package gcmd 2021-12-11 00:57:26 +08:00
John Guo
3a20883a81 improve package gcmd 2021-12-11 00:12:58 +08:00
John Guo
f0c25d8476 improve package gcmd/gtag 2021-12-10 23:58:10 +08:00
John Guo
e10ba4cf67 improve stack filtering for package gdebug/glog 2021-12-10 22:54:32 +08:00
John Guo
39bbca2a50 add stack filter of goframe module path for logging content 2021-12-10 18:52:35 +08:00
John Guo
f25f8e8033 add argument feature for package gcmd 2021-12-09 23:49:39 +08:00
John Guo
01930c9899 improve package gcmd 2021-12-08 19:50:28 +08:00
John Guo
4f0b45aeac improve package gcmd 2021-12-08 19:21:25 +08:00
John Guo
b7b71795a4 improve package gcmd 2021-12-07 22:19:28 +08:00
John Guo
9c41f2e3f8 improve package gcmd 2021-12-07 22:10:19 +08:00
John Guo
a8d6363e79 inject Command into context and add function CommandFromCtx for package gcmd 2021-12-07 21:55:06 +08:00
John Guo
5dcdb66794 add MustShell/MustShellRun/MustShellExec for package gproc 2021-12-07 21:13:50 +08:00
John Guo
ad64a29145 add MustSet/MusetRemove for package genv 2021-12-07 21:03:06 +08:00
John Guo
6a82fdb888 add config feature for package gcmd 2021-12-07 19:08:52 +08:00
John Guo
71399d1f65 improve package gcmd 2021-12-04 00:26:45 +08:00
John Guo
80e8a58f45 add NeedArgs feature for package gcmd 2021-12-02 23:50:29 +08:00
John Guo
26ef8c5872 add root tag in matadata of struct to specify the root command function for the object for package gcmd 2021-12-02 23:31:06 +08:00
John Guo
6aa39b3451 improve package gcfg 2021-12-02 20:55:41 +08:00
John Guo
c1b75b9071 improve package gcmd 2021-12-02 20:27:26 +08:00
John Guo
65e1048715 improve package gcron 2021-12-02 20:05:29 +08:00
John Guo
9ed6ebbcff
Merge pull request #1384 from kingeasternsun/processconflict
feat(fix bug , add nexttime feature):
2021-12-02 19:50:01 +08:00
John Guo
261fa7e843
Merge pull request #1505 from jqb44179/feature/gfile_example
pull request by gfile example
2021-12-02 19:41:21 +08:00
tom
632b7f34ae add gfile example 2021-12-02 17:27:53 +08:00
ansionfor
8f0c0337c5 update gtime example output 2021-11-30 23:10:02 +08:00
ansionfor
d87413fb23 Merge branch 'master' of https://github.com/ehproject-teamer/gf 2021-11-30 22:55:51 +08:00
ansionfor
0340fb7124 update gtime example 2021-11-30 22:53:28 +08:00
heansheng
6c19844a2f
Merge branch 'gogf:master' into master 2021-11-30 22:50:48 +08:00
John Guo
dd0045e36f improve package gcmd 2021-11-30 16:43:42 +08:00
ansionfor
6acb2f46e6 update gtime example 2021-11-29 10:14:55 +08:00
ansionfor
578d8218bd go fmt 2021-11-29 10:08:12 +08:00
heansheng
f754bdbb0e
Update gtime_z_example_time_test.go 2021-11-29 10:05:52 +08:00
ansionfor
3ff77a87d4 add json 2021-11-28 23:57:49 +08:00
ansionfor
2ead7606b2 go fmt 2021-11-28 23:41:41 +08:00
heansheng
1fdf85e3b8
update MarshalJSON example 2021-11-28 23:36:21 +08:00
John Guo
45e9e108bd add search folders for package gcfg 2021-11-27 20:54:02 +08:00
John Guo
7bdb4fe660 fix unit testing case for package gcache 2021-11-27 12:10:05 +08:00
John Guo
817c3ce698 add Available function for Adapter of package gcfg 2021-11-27 01:36:21 +08:00
John Guo
c33378540a add Available function for Adapter of package gcfg 2021-11-27 01:33:53 +08:00
John Guo
35cf228d83 add AdapterRedis for package gcache 2021-11-27 01:10:00 +08:00
mojoma
ab1f64a83e remove unnecessary code 2021-11-25 22:01:47 +08:00
John Guo
be0df90d05 add strict attribute for gcmd.Command for strict option parsing 2021-11-25 14:56:15 +08:00
John Guo
f91b5b558a improve package gcmd 2021-11-24 22:45:34 +08:00
John Guo
0db3a9f0f6 improve package gcmd 2021-11-24 22:27:09 +08:00
John Guo
8442bab164 improve package gcmd 2021-11-24 22:15:23 +08:00
John Guo
332de30fba improve package gcmd 2021-11-24 21:57:41 +08:00
John Guo
c5541b484f improve package gtag/gcmd 2021-11-24 21:41:36 +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
9e21052a3c object feature for package gcmd 2021-11-23 14:08:37 +08:00
John Guo
dc1ad3dda4 gcmd manager feature 2021-11-22 11:23:46 +08:00
John Guo
f5920fff68 Merge branch 'master' of https://github.com/gogf/gf 2021-11-21 23:04:11 +08:00
John Guo
e15a862cd2
Merge pull request #1463 from hailaz/master
add examples for package gfile
2021-11-21 22:47:03 +08:00
John Guo
22b7b2b953 comment updates for package gcmd 2021-11-21 22:38:47 +08:00
John Guo
dde4b75022 improve command feature for package gcmd 2021-11-21 13:11:28 +08:00
John Guo
e936b376fb improve command feature for package gcmd 2021-11-21 13:09:45 +08:00
John Guo
dbee5810dc merge master 2021-11-21 00:54:40 +08:00
John Guo
8db890c510 improve unit testing case for package gcache 2021-11-20 12:08:14 +08:00
HaiLaz
b81a1e7c9c
Merge pull request #12 from gogf/master
pr from master
2021-11-19 09:56:02 +08:00
hailaz
0355ec6b21 doc: add code comments 2021-11-19 09:53:32 +08:00
John Guo
d138c5bff2 improve unit testing case for package gview 2021-11-18 22:33:36 +08:00
John Guo
66d56396ca improve unit testing case for package gview 2021-11-18 22:16:54 +08:00
John Guo
07ac8aca41 fix unit testing cases for package gres/gview 2021-11-18 20:07:24 +08:00
John Guo
712416f490 improve gutil.Dump 2021-11-18 15:20:37 +08:00
hailaz
747ed6c64d Merge branch 'master' of https://github.com/gogf/gf into gogf-master 2021-11-18 09:52:27 +08:00
John Guo
57ccc13e0c unit testing files renaming 2021-11-17 23:20:58 +08:00
hailaz
e4023cadce doc: add code comments 2021-11-17 19:50:03 +08:00
hailaz
51cc9c541f doc: add copyright 2021-11-17 14:14:19 +08:00
houseme
e86ee052cb improve code import 2021-11-16 19:29:02 +08:00
houseme
c6efb5ee3b [feature] improve code range map 2021-11-16 17:21:13 +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
4fa2a879d7 [feature] improve code gview 2021-11-15 20:49:02 +08:00
houseme
cd60a4aca7 [feature] improve code glog 2021-11-15 20:31:16 +08:00
houseme
b664982be3 [feature] improve code gfile gcfg 2021-11-15 20:26:31 +08:00
houseme
b59ed1b943 Improved import, by group improt. 2021-11-14 15:37:24 +08:00
houseme
ea31af5364
Merge branch 'gogf:master' into master 2021-11-14 15:33:18 +08:00
hailaz
5ef8280c31 fix: gfile scan dir example 2021-11-14 00:08:31 +08:00
ansionfor
15deeb19b0 go fmt 2021-11-13 23:48:47 +08:00
hailaz
f2dc26a7b3 Improved gfile example 2021-11-13 23:42:03 +08:00
houseme
299e16bed1 Improved import, by group improt. 2021-11-13 23:34:16 +08:00
ansionfor
cfa3d817af update gtime example 2021-11-13 23:16:18 +08:00
Anson
56648638aa
Merge branch 'gogf:master' into master 2021-11-12 11:14:03 +08:00
546104865
4e91039254 Update gcache_z_example_cache_test.go 2021-11-11 23:37:01 +08:00
546104865
195e167502 Update gcache_z_example_cache_test.go 2021-11-11 23:29:29 +08:00
546104865
01a50b06cb Update gcache_z_example_cache_test.go 2021-11-11 22:32:08 +08:00
546104865
9b663b4c2b Update gcache_z_example_cache_test.go 2021-11-11 22:18:01 +08:00
546104865
655426c322 Update gcache_z_example_cache_test.go 2021-11-11 21:19:33 +08:00
ansionfor
ae819ad44b Merge branch 'master' of https://github.com/ehproject-teamer/gf 2021-11-11 17:51:33 +08:00
ansionfor
50ad3f0f26 go fmt 2021-11-11 17:49:43 +08:00
Anson
413a8be037
Merge branch 'gogf:master' into master 2021-11-11 17:45:49 +08:00
ansionfor
da659817c5 complete gtime example 2021-11-11 17:41:31 +08:00
hailaz
6d37515e14 Optimization gfile example 2021-11-11 13:01:32 +08:00
546104865
30f462288e Update gcache_z_example_cache_test.go 2021-11-10 16:39:26 +08:00
546104865
be274478d0 Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei 2021-11-09 20:47:28 +08:00
hailaz
33694c8b47 fix: ExampleGetContentsWithCache intlog 2021-11-09 16:34:00 +08:00
kingeasternsun
14b7c591d0
fix "github.com/gogf/gf/v2/test/gtest" 2021-11-09 16:25:44 +08:00
kingeasternsun
72043d0657
Merge branch 'gogf:master' into processconflict 2021-11-09 16:11:07 +08:00
hailaz
58dd8a29db fix: gflie size example dir default size 4k 2021-11-09 16:04:47 +08:00
hailaz
1f83c00ebf fix: gfile size example fail 2021-11-09 15:49:00 +08:00
546104865
903299728f update Must Cache 2021-11-09 11:46:53 +08:00
564104865
c617ad6a04
Merge branch 'gogf:master' into zhiwei 2021-11-09 11:38:05 +08:00
John Guo
d1b69142c4 improve unit testing case for package gcache 2021-11-08 19:51:32 +08:00
564104865
2d1593f78e Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei 2021-11-08 12:12:15 +08:00
564104865
d61f7af60c update cache adapter 2021-11-08 12:12:10 +08:00
John Guo
091df972f1 improve example for package gcache 2021-11-07 21:52:27 +08:00
564104865
2757647211 Revert "11"
This reverts commit 45787dd8e4.
2021-11-06 20:31:47 +08:00
564104865
45787dd8e4 11 2021-11-06 20:31:16 +08:00
HaiLaz
3de37873dc
Merge pull request #10 from gogf/master
pr from master
2021-11-05 15:02:25 +08:00
hailaz
8a9dd169e2 test: add gflie example 2021-11-05 14:30:50 +08:00
564104865
5b83b2375e Update gcache_z_example_cache_test.go 2021-11-05 09:41:49 +08:00
564104865
613a50428b Update gcache_z_example_cache_test.go 2021-11-04 23:23:40 +08:00
564104865
357084e788 update cache 2021-11-04 20:55:01 +08:00
564104865
b6f6ab17f9 go fmt 2021-11-03 23:50:57 +08:00
564104865
7bcba437a0 update cache values 2021-11-03 23:44:16 +08:00
564104865
abf199bf61
Merge branch 'gogf:master' into zhiwei 2021-11-03 23:29:31 +08:00
564104865
8f090739d9 go fmt 2021-11-03 15:23:51 +08:00
564104865
7971177c58 newredis 2021-11-03 15:16:07 +08:00
danvinhe
5ffd362b6e
Update glog_logger.go
多了个空格
2021-11-03 15:02:21 +08:00
564104865
a423fba2a8 comment or be unexported
exported method Redis.UpdateExpire should have comment or be unexported
2021-11-03 14:59:28 +08:00
danvinhe
41d0832fa5
Merge branch 'master' into hotfix/i1421 2021-11-03 14:55:02 +08:00
564104865
7de69db707 232234 2021-11-03 10:16:41 +08:00
John Guo
56c12ad7c3 fix unit testing case for pakage gfile 2021-11-02 09:56:53 +08:00
John Guo
79a233eb78 example&comment update 2021-11-01 19:46:39 +08:00
John Guo
c0c68d1e46 rename Println -> Print for package glog 2021-10-30 20:47:38 +08:00
John Guo
e22e1d0e4a remove function Println from package glog 2021-10-30 19:44:22 +08:00
John Guo
42e27dd14c add context parameter for package grpool 2021-10-30 18:09:58 +08:00
John Guo
e15cd6ae89 fix issue in package gcache 2021-10-30 16:00:38 +08:00
John Guo
17e6063c5c add neccessary parameter context for package gcron/gtimer 2021-10-30 15:36:10 +08:00
kingeasternsun
e21bd9b4cb
Update gcron_schedule.go 2021-10-27 10:44:28 +08:00
kingeasternsun
ded94276a8
Merge branch 'master' into processconflict 2021-10-27 10:33:36 +08:00
John Guo
8dd9483572 fix issue in unit testing case for package gview 2021-10-22 14:09:08 +08:00
John Guo
4e7b33bde3 fix issue in unit testing case for package gview 2021-10-22 13:14:48 +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
854747574d fix issue in package gcfg 2021-10-12 16:15:52 +08:00
John Guo
7eb3b32b26 fix unit testing cases 2021-10-11 21:53:16 +08:00
John Guo
1bc0635f8b version 2 2021-10-11 21:41:56 +08:00
John Guo
82175b5de9 rename gctx.Value/WithValue to CtxId/WithCtxId 2021-10-11 20:25:02 +08:00
lindan.he
e0c4f7ccbf Fixed: #1421 2021-10-09 18:32:59 +08:00
John Guo
322f5933ad add build-in swagger ui support for ghttp.Server 2021-10-03 00:22:06 +08:00
John Guo
750972e7c6 fix unit testing cases 2021-09-28 19:04:36 +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
5904a1e7c0 refract package gredis 2021-09-26 23:22:32 +08:00
John Guo
6eee72b336 refract package gredis 2021-09-23 21:23:22 +08:00
John Guo
6fa0ad5793 gredis refract 2021-09-23 19:12:02 +08:00
John Guo
ef0aeb363b comment update for paxkage gcache; improve package gbuild 2021-09-22 19:29:08 +08:00
John Guo
53db88c630 comment update for package gsession 2021-09-19 10:18:58 +08:00
John Guo
c99c13acd1 refract pacakge gcfg, adding adapter interface for pacakge gcfg 2021-09-19 10:01:09 +08:00
jianchenma
01a3dd1eb0 add function gerror.HasStack; rename all api* interfaces to i* 2021-09-17 19:26:56 +08:00
jflyfox
5383672d78 change returned parameter from interface{} to *gvar.Var for gsession.Sessio.Get; remove Get* function excluding Get for gsession.Session 2021-09-17 11:15:00 +08:00
John Guo
28f70d52ee add context parameter for all functions of package gcache 2021-09-17 10:48:08 +08:00
kingeasternsun
cfc1f8fbe4 use english doc 2021-09-17 09:27:31 +08:00
John Guo
1455e30350 change returned value by Get* and Update/Remove functions from type interface{} to *gvar.Var for package gcache 2021-09-16 22:13:00 +08:00
John Guo
b46e9bb68a improve package gcache 2021-09-16 21:17:03 +08:00
John Guo
55a9c0738b improve package gcache, add GetVar*/RemoveVar/UpdateVar functions for package gcache 2021-09-16 20:57:59 +08:00
kingeasternsun
a72493f320 Merge branch 'master' into processconflict 2021-09-16 11:32:54 +08:00
kingeasternsun
0d9d7b8e04
Merge branch 'gogf:master' into master 2021-09-16 11:31:38 +08:00
John Guo
68e760d13a fix issue @1380 2021-09-15 21:17:45 +08:00
kingeasternsun
c323256812 Merge branch 'master' into processconflict 2021-09-15 18:54:46 +08:00
kingeasternsun
26584cdbb4
Merge branch 'gogf:master' into master 2021-09-15 18:52:59 +08:00
John Guo
64a5cedcdf fix recover logic 2021-09-14 20:47:06 +08:00