Commit Graph

415 Commits

Author SHA1 Message Date
John
3485ba2a5d improve package gtime 2020-11-26 22:40:55 +08:00
John
df86ffb61e improve package glog for nil file pointer 2020-11-19 20:43:44 +08:00
John Guo
85dd2e9f4f
Merge pull request #978 from lutherlau/patch-1
Update gtimer_timer.go
2020-11-12 20:39:57 +08:00
John
68cc85f2b2 improve file extension handling for package glog 2020-11-12 18:38:58 +08:00
John
3e6a23b0e1 add more unit testing case for package gview 2020-11-08 18:01:09 +08:00
John
ee8d2afe58 add build-in function map/maps for package gview 2020-11-08 17:11:04 +08:00
John
1edc1f35fb add individual cache for package gdb/gfile 2020-11-07 20:00:35 +08:00
John
9f04e46166 mark gconv.StructDeep/StructsDeep deprecated 2020-11-05 23:02:29 +08:00
None
fef20d10a2
Update gtimer_timer.go
bugfix: avoid overflow
2020-11-05 22:33:33 +08:00
John
5999f22f76 fix issue in embeded struct validation for package gvalid 2020-11-04 20:04:54 +08:00
John
87650557fd remove debugging codes from package gtime 2020-10-26 19:06:27 +08:00
John
8e380c0d9d improve package gtime/gconv for map converting 2020-10-25 11:33:30 +08:00
John
7efa9e351e remove default initialization function and add lazy initialization feature for package gfsnotify 2020-10-15 20:07:21 +08:00
John
9044d5f05d fix issue in custom session id lost for ghttp.Request 2020-10-13 20:34:31 +08:00
John
63c0aab19c improve package gtime 2020-10-12 23:32:32 +08:00
John
f9189d48d1 remove type ValueFunc from package gcache 2020-10-09 23:36:39 +08:00
John
849874a247 improve adapter definition for package gcache 2020-10-09 20:59:49 +08:00
John
37b286eaa4 improve performance for gconv.Maps;comment update for package gcache 2020-09-27 22:35:02 +08:00
John
aeb9b68298 improve adapter feature for package gcache 2020-09-26 22:44:07 +08:00
John
bae8f6315b comment updat 2020-09-26 21:13:09 +08:00
John
a6f70f8935 comment updat 2020-09-26 21:00:28 +08:00
John
acca6f4009 add adapter feature for package gcache 2020-09-26 20:47:29 +08:00
John
28b0d59c61 improve package gcfg/gjson for data loading 2020-09-21 21:30:58 +08:00
John
86433cef25 improve gtime.New, gconv.String 2020-09-18 23:59:49 +08:00
John
eb43a2040e add ghttp.Client.RedirectLimit and gfile.ScanDirFileFunc 2020-09-09 22:26:46 +08:00
John
957689e07c up 2020-09-02 23:22:16 +08:00
John
3952d74f87 up 2020-09-02 21:36:21 +08:00
John
6dc4b81693 add max recursive depth for directory scanning for function gfile.Scan* 2020-09-02 21:25:02 +08:00
John
8c12bc5506 change panic to internal logging for package glog 2020-09-01 21:22:19 +08:00
Jack
27dd15b403 improve initialization for logger of package glog 2020-08-26 14:37:02 +08:00
John
bea451c9d6 improve date type support for package gdb; improve datetime string for gtime.StrToTime; improve function gtime.New for more types 2020-08-21 23:41:12 +08:00
John
1874808e3b improve unit testing case for package gcache 2020-08-19 21:37:26 +08:00
Jack
84d761b418 add function AddWithRecover for package grpool 2020-08-12 23:53:05 +08:00
Jack
607821ecbc add function LoadContentType for package gjson 2020-08-12 20:38:48 +08:00
Jack
7cc1b239d4 add functions Update/UpdateExpire/GetExpire for package gcache 2020-08-12 20:13:13 +08:00
John Guo
efa8de34da
Merge pull request #860 from XWR940711/master
add func gcache.SetVar/gcache.SetExpire/gcacge.GetExpire.
2020-08-12 19:19:19 +08:00
糖水不加糖
bcf45e3c5a CI-glog失败重测 2020-08-12 10:32:40 +08:00
糖水不加糖
0a3cd1d2ab 修正方法代码.使用Benchmark测试. 2020-08-12 09:57:47 +08:00
john
c3d3053ded improve GetOrSetFunc for package gcache 2020-08-09 21:28:31 +08:00
John Guo
c39c032b4e
Merge pull request #844 from qinyuguang/scan
gcmd.Scan supports read line that contains whitespace
2020-08-08 09:58:32 +08:00
糖水不加糖
4871f86346 adjust TestCache_Expire_SetVar Test Code. 2020-08-07 16:26:26 +08:00
糖水不加糖
919eaf1e9a adjust TestCache_Expire_SetVar Test Code. 2020-08-07 14:05:21 +08:00
糖水不加糖
8a84ca16d1 add func gcache.SetVar/gcache.SetExpire/gcacge.GetExpire.
add test TestCache_Expire_SetVar.
2020-08-07 13:24:41 +08:00
qinyuguang
cf88f28519 gcmd.Scanf supports read line that contains whitespace 2020-08-03 21:00:02 +08:00
Jack
6d68277db8 improve cookie feature for ghttp.Server 2020-08-03 20:00:00 +08:00
qinyuguang
ba1a9d9f8e gcmd.Scan supports read line that contains whitespace 2020-08-01 02:13:42 +08:00
John Guo
7f33021184
Merge pull request #825 from chenall/gjson-support-utf8-with-bom
fix configfile with UTF8-BOM issue
2020-07-31 00:08:05 +08:00
Jack
f7a9be4292 improve package glog for rotation feature 2020-07-30 21:09:45 +08:00
Jack
a926033b66 move Separator from const to variable for package gfile 2020-07-30 20:57:08 +08:00
Jack
dbcdd06b19 Merge branch 'master' of https://github.com/gogf/gf 2020-07-30 20:49:32 +08:00
Jack
ff5dab5c70 improve package glog for rotation feature 2020-07-30 20:49:11 +08:00
John Guo
84b576418f
Merge pull request #835 from XWR940711/master
add func gtimer.Entry.Reset()
2020-07-30 20:20:50 +08:00
Jack
253b124903 fix issue in database configuration for package gind 2020-07-30 20:18:18 +08:00
糖水不加糖
9e1fb93e08 adjust gtimer.Entry.Reset() Test Code. 2020-07-30 11:00:19 +08:00
糖水不加糖
5d24f702be adjust gtimer.Entry.Reset() Test Code. 2020-07-30 10:37:48 +08:00
Jack
2f0e5a45c5 improve package gcron 2020-07-29 23:03:31 +08:00
john
c4b28b0bc4 improve gtime.ParseDuration 2020-07-29 11:44:58 +08:00
糖水不加糖
6cc4747965 add func gtimer.Entry.Reset() 2020-07-29 11:22:46 +08:00
john
9cff2bd10f add function ParseDuration and time unit 'd' support for package gtime 2020-07-28 22:46:15 +08:00
chenall
437fc04620 improve testCfg_With_UTF8_BOM unit_test 2020-07-25 14:07:33 +08:00
chenall
937f8e6919 fix configfile with UTF8-BOM issue 2020-07-25 10:57:40 +08:00
john
5be30b3684 fix issue in logging file rotation 2020-07-20 21:32:28 +08:00
John Guo
54a2b13825
Merge pull request #802 from csrgxtu/bug/log-file-rotate
bug/log-file-rotate: fix big file even with rotate-by-size and rotate…
2020-07-20 21:30:52 +08:00
john
ca72d3b23a remove gfcache usage from repo 2020-07-18 08:32:35 +08:00
muyakongali
edc67d9ec3 bug/log-file-rotate: fix big file even with rotate-by-size and rotate-back-expire 2020-07-17 10:39:14 +08:00
john
4dd12434b7 add file cache feature for package gfile and remove package gfcache 2020-07-16 12:31:13 +08:00
john
69fa5bf464 improve package gtime for nil gtime.Time object 2020-07-15 20:37:13 +08:00
john
64c99b9871 add configuration updating feature for package gcfg 2020-07-15 00:07:07 +08:00
John Guo
c770e4779a
Merge pull request #758 from wnstar/log
log added function name display
2020-07-13 23:21:49 +08:00
john
293256c2ca improve package gmode 2020-07-12 09:34:43 +08:00
John
46bdde9265 revert gvar.Var from interface to struct 2020-06-29 13:40:19 +08:00
John
d4d66fd529 improve package gtime 2020-06-22 19:46:39 +08:00
wnstar
b7686d6d37 log added function name display 2020-06-22 11:04:57 +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
897a9f4584 Merge branch 'develop' 2020-06-16 20:42:26 +08:00
John
4d38b508a3 improve gvar by changig gvar.Var from type struct to interface 2020-06-16 17:38:05 +08:00
fangxiaokai
f6d760e90f 1、修复redis存储session时,最大过期时间问题: ttl.Seconds()返回float64在redis中报错 2020-06-16 11:19:08 +08:00
John
b83f1efde8 remove panic for stdout error for package glog 2020-06-15 22:57:27 +08:00
John
f33753e0cd add example for package ghttp/glog 2020-06-08 20:21:35 +08:00
john
dbb51a9328 improve package glist 2020-06-04 20:13:33 +08:00
John
269378aa0d fix issue in unit testing case for package gsession; version updates 2020-05-28 20:28:07 +08:00
John
6889542801 improve package guid 2020-05-27 11:26:05 +08:00
john
a5a267567c comment update for package garray 2020-05-22 12:04:58 +08:00
john
7c2cff7d99 add function GetVar for package gcache 2020-05-17 18:16:26 +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
3559436d1e improve package guid 2020-05-17 08:50:37 +08:00
john
189f4c1637 improve package gsession 2020-05-16 22:08:16 +08:00
john
8050efb835 improve package gfile 2020-05-16 14:06:35 +08:00
John
acc2a6a353 improve copy feature for package gfile 2020-05-16 00:50:01 +08:00
John
74c65439fc add function ScanDirFunc for package gfile 2020-05-15 21:51:03 +08:00
John
f290bd7170 fix issue in http.File implements for package gres 2020-05-14 21:25:54 +08:00
John
2fd5a1574a improve package gres 2020-05-14 20:32:01 +08:00
John
22ecf4f1b6 add context feature for package glog 2020-05-08 17:12:37 +08:00
john
5d21148657 comment updates for package ghttp 2020-05-07 23:05:33 +08:00
John
61f4e0da6f improve package gcache 2020-05-06 21:09:02 +08:00
John
767afa3106 improve package gcache 2020-05-06 19:06:49 +08:00
john
b4c0b95d8a add support for old version of gres 2020-05-03 22:16:12 +08:00
john
b7e8255066 add support for old version of gre 2020-05-03 22:08:08 +08:00
John
c8d253eb56 change binary content from hex string to base64 string for package gres 2020-05-01 02:35:24 +08:00
John
4814624cff change binary content from hex string to base64 string for package gres 2020-05-01 02:16:42 +08:00
John
f7c2a51c9f fix issue in zip feature for package gcompress; improve package gres 2020-05-01 00:18:45 +08:00
John
3db83e1159 improve package gtimer 2020-04-30 22:22:35 +08:00
John
45170bc53e add ClientMaxBodySize configuration for ghttp.Server 2020-04-30 20:37:09 +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
cf1d3d3d2b improve package gdebug; add more unit testing case for package gdb 2020-04-27 17:56:04 +08:00
John
9480ffcdc0 improve function SetPath/AddPath for package gview 2020-04-27 17:07:00 +08:00
John
362e380ada improve SetConfigWithMap function for package ghttp/glog/gview; reveal some logger functions for default logger of package glog 2020-04-15 11:04:39 +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
46ee070f0a fix issue in package gfsnotify when gset changes 2020-04-14 00:20:39 +08:00
John
b17e3a6804 improve package gset 2020-04-13 23:44:43 +08:00
John
f22da4ba3a improve gconv.MapDeep with anonymous checks for attribute struct field 2020-04-09 15:34:23 +08:00
John
2ea1d2c7b2 update build-in template function substr/strlimit for package gview 2020-04-07 23:53:17 +08:00
John
7bcc596308 add GetVar function for package genv; add DryRun feature for package gdb 2020-04-02 20:52:37 +08:00
John
040898cdc3 improve unit testing case for package gmutex 2020-03-30 22:55:03 +08:00
John
7e0fa8e0cd improve package garray 2020-03-30 20:31:47 +08:00
John
6059782de8 add unit testing case of basic auth for ghttp.Client; remove intlog for New function of package gspath 2020-03-29 19:36:49 +08:00
John
8ecd62d3de add example for package gres 2020-03-28 21:32:29 +08:00
John
4c610b4f58 improve session storage file for ghttp.Server 2020-03-28 20:02:57 +08:00
John
bd2e51ddca improve unit testing case for package glog 2020-03-28 00:47:34 +08:00
John
ddcb7121c1 improve temporary path producing from gfile.Join to gfile.TempDir 2020-03-28 00:41:12 +08:00
John
f1f575fd5c improve package gins/gfile/intlog 2020-03-28 00:37:23 +08:00
John
99adb7cdc4 comment update 2020-03-26 23:48:21 +08:00
John
6b7ea97777 improve quote handling of table string for package gdb; improve rotation feature for package glog 2020-03-26 22:25:43 +08:00
John
495b5758ec improve quote handling of table string for package gdb; improve rotation feature for package glog 2020-03-26 22:22:27 +08:00
John
ba56eb87b1 improve rotation feature for package glog 2020-03-26 20:58:57 +08:00
John
4258a3bbc9 improve StrToSize function for package gfile 2020-03-26 15:54:57 +08:00
John
4912331ddc improve mtime feature for gfile; improve rotation feature for glog 2020-03-26 09:29:36 +08:00
John
e87b7ecf5d improve unit testing case for package gfpool 2020-03-26 08:52:50 +08:00
John
23bce7bde6 reduce the goroutine count for unit testing cases of package gfpool/glog 2020-03-25 23:49:33 +08:00
John
926b664615 improve package garray for crossing border handling; improve rotation feature for package glog 2020-03-25 23:36:56 +08:00
John
0389778725 improve package glog for file lock 2020-03-25 00:03:52 +08:00
John
75054ee109 fix issue in rebinding feature for grou router of ghttp.Server 2020-03-24 19:48:10 +08:00
John
8447b1a42b add function LevelStr/StackWithFilter functions for package glog 2020-03-24 00:05:11 +08:00
John
e5265a1c46 add level string feature for package glog 2020-03-23 22:40:44 +08:00
John
6e8ef8d0b0 add level string feature for package glog 2020-03-23 22:36:06 +08:00
John
75dc1d82c1 example names change 2020-03-22 12:49:46 +08:00
John
bfa64705b5 update comment for package gsession 2020-03-22 00:15:59 +08:00
John
17aea8d7d4 improve unit testing cases by changing creating testdata path using gdebug.TestdataPath function 2020-03-21 23:47:33 +08:00
John
a6a01fd7f2 improve template cache for ParseContent function of package gview 2020-03-21 23:42:34 +08:00
John
41a9e91b4c improve example for package gpage 2020-03-21 23:13:31 +08:00
John
c2966817ce improve function gdebug.TestDataPath and update all usage codes 2020-03-21 19:41:05 +08:00
John
16958413bb improve autoencode feature for package gview 2020-03-21 19:31:58 +08:00
John
c0a0913d4b add more unit testing case for template feature of ghttp.Server 2020-03-21 13:45:33 +08:00
John
e57942b374 improve unit testing cases 2020-03-20 08:56:17 +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
2b46e765c4 change function time.Duration.Milliseconds to time.Duration.Nanoseconds for compatibility of Golang version < 1.13 2020-03-16 23:03:37 +08:00
John
c7f911cae2 change function time.Duration.Milliseconds to time.Duration.Nanoseconds for compatibility of Golang version < 1.13 2020-03-16 23:03:35 +08:00