Commit Graph

415 Commits

Author SHA1 Message Date
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
John
9f0548c03d improve testdata directory retrieving for unit testing cases 2020-03-16 22:47:39 +08:00
John
c578df06a3 fix issue in unit testing case of package gfile 2020-03-16 20:51:19 +08:00
John
8ed3cf9c97 fix issue in unit testing case of package gcdg 2020-03-16 20:46:03 +08:00
John
d716037caa improve package gcfg adding default configuration file searching for instance 2020-03-15 19:56:07 +08:00
John
74be9fac18 add file rotation feature for package glog; improve gpool/gfpool; fix issue in gfile.MTimeMillisecond 2020-03-15 19:32:26 +08:00
John
0a92df691b improve package gpool/gfpool; donator updates 2020-03-14 17:12:44 +08:00
John
4732bf46ad add Context map for internal context workflow parameter exchanges for ghttp.Request 2020-03-08 22:53:20 +08:00
John
6665d62e7e improve package gfile 2020-03-07 20:28:00 +08:00
John
a34ca0ff4b improve uploading file feature for ghttp.Server; improve package gfile/gstr/gdebug 2020-03-07 19:31:33 +08:00
John
93d0760898 add GetPage function for ghttp.Request 2020-03-06 11:01:03 +08:00
John
d8a7e36478 improve router feature for ghttp.Server 2020-03-04 17:29:23 +08:00
John
bb1c27c36a add more unit testing cases for glog 2020-02-26 23:26:24 +08:00
John
42fd583bfd add more inernal logging points for core components 2020-02-24 21:09:19 +08:00
John
d8ef8a1f5d add gf.debug options and GF_DEBUG env control params for internal logging feature 2020-02-22 14:51:44 +08:00
John
34e7c5f809 rename grand.Str to grand.S; add different function Str for grand 2020-02-21 00:01:27 +08:00
John
89f869dd44 remove internal logging for gsession.StorageFile; improve example codes for CORS feature of ghttp.Server 2020-02-16 23:00:42 +08:00
John
7443246e05 add gtime.TimeWrapper 2020-02-16 18:07:05 +08:00
John
36403fdc08 improve configuration for mssql 2020-02-16 16:25:03 +08:00
John
0317f6812e add more unit testing cases for gtime 2020-02-16 15:11:21 +08:00
John
19755ad233 improve gcfg 2020-02-14 21:57:35 +08:00
John
88684ca00a add panic if internal watcher creation fails for gfsnotify; improve codes and change comment from chinese to english for gdb 2020-02-10 20:37:53 +08:00
John
1e45bf93d8 remove error printing when decoding error in communication feature of gproc 2020-02-06 19:21:17 +08:00
John
e8dd3979b6 add more unit testing cases for ghttp/gview 2020-02-06 15:17:10 +08:00
John
4d2b244319 fix issue in gres.UnpackContent; fix issue in gtime.NewFromTimeStamp 2020-02-04 17:09:18 +08:00
John
4c3af63076 improve time string parsing for invalid datetime 2020-02-01 20:14:24 +08:00
John
7d7b242968 Merge branch 'master' of https://github.com/gogf/gf 2020-01-21 15:42:19 +08:00
John
202419202f improve logger feautre, add unit testing cases for ghttp.Server; add SetDefaultLogger function for glog 2020-01-21 15:42:08 +08:00
John Guo
55078beed1
Merge pull request #484 from chikaku/remove_redundant
Remove redundant code in gsession
2020-01-21 15:40:35 +08:00
chikaku
d9f4e6eaa6 remove redundant code in gsession 2020-01-21 14:55:08 +08:00
John
2ba0913bea comment update for gtimer 2020-01-21 14:46:23 +08:00
John
7df53ff55e rename all timestamp function names from *Second to Timestamp* 2020-01-20 14:14:11 +08:00
John
f2af08270b improve gproc 2020-01-19 20:42:21 +08:00
John
d9c7224861 readme updates 2020-01-18 22:21:37 +08:00
John
872d674182 fix issue in database 'time' type support in package gdb 2020-01-15 21:23:40 +08:00
John
b7d194cf52 improva gcmd.Parser/gres 2020-01-15 09:36:58 +08:00
John
edf2366296 improve gzip feature for gcompress; add gzip compression for package gres 2020-01-15 00:15:56 +08:00
John
f662ff8051 add pprof unit testing case for ghttp; reame updates 2020-01-12 22:26:07 +08:00
John
afadbc6621 improve genv.Remove/gproc.Kill 2020-01-10 22:32:07 +08:00
John
ca546fc30b why the goland auto removed my genv import? 2020-01-10 09:39:54 +08:00
John
7c7c168c3d improve gproc.SearchBinary 2020-01-09 23:05:03 +08:00
John
16f0bb96db improve strict parsing feature for gcmd 2020-01-08 23:06:01 +08:00
John
81fd3d06bb make parser default unstrict for gcmd 2020-01-08 19:30:56 +08:00
John
f2190e50b2 improve unit testing for gdb 2020-01-06 20:43:59 +08:00
John Guo
167d58490b
Merge pull request #455 from gnever/191229_gfile_add_readline_mst
Add ReadLines and ReadByteLines read file content line by line
2020-01-06 17:52:41 +08:00
John
bec9f5a847 add buildin function 'concat' for gview 2020-01-05 19:55:17 +08:00
John
344f232c36 add Timestamp*Str functions for gtime; improve unit testing cases for gfile 2020-01-02 21:29:06 +08:00
John
27b677b0c0 improve Map converting feature for gconv; improve package gproc for local shell searching; improve JSON/XML response for ghttp.Response 2020-01-02 19:45:41 +08:00
John
fe5d2e5685 improve parameter parsing feature for ghttp.Request 2020-01-01 14:18:00 +08:00
xubin.gao
d6e6ddf996 Add gfile.ReadLines and gfile.ReadByteLines read file content line by line 2019-12-29 19:24:56 +08:00
John
5dbda8aedc fix issue in unit testing codes in gfile 2019-12-29 14:15:17 +08:00
John
134e4cf28f improve gfile.CopyDir function; add Model function for gdb.Model 2019-12-28 13:55:05 +08:00
John
56a85abef7 add AutoEncode feature for gview 2019-12-26 11:03:59 +08:00
John
80c6ceaf26 fix issue 437 2019-12-25 21:22:06 +08:00
John
a10f428715 add Iterator* functions for garray; add ReplaceDir*/ReplaceFile* functions for gfile; remove gfile.Replace/ReplaceFunc functions 2019-12-25 20:56:39 +08:00
John
922e720d63 improve gdb/ghttp/gins; fix issue in gstr 2019-12-19 15:14:05 +08:00
John
5f2be10563 improve gdb/gtime 2019-12-17 21:06:34 +08:00
John
4996755f11 improve gcmd.Scan* 2019-12-14 22:48:53 +08:00
John
e33230a88f add package gbuild 2019-12-14 17:01:27 +08:00
John
795c7395e6 fix data race issue in unit testing cases for gtcp 2019-12-13 17:40:29 +08:00
John
458318d374 improve prefix and word quote feature for gdb; merge develop 2019-12-12 23:54:07 +08:00
John
87295ef1fe improve process communication feature for gproc; add more slice converting functions for gconv 2019-12-11 21:22:41 +08:00
John
34ef0ea792 add prefix feature for gdb 2019-12-10 21:14:15 +08:00
John
add7dd5a45 merge develop 2019-12-09 23:22:49 +08:00
John
e40894ca45 add IsServiceHandler for ghttp.RouterItem 2019-12-09 23:19:39 +08:00
John
28825f5395 add gdebug.BuildInfo function; improving gproc 2019-12-09 21:53:44 +08:00
John
6ca5141020 some improving 2019-12-08 22:55:32 +08:00
John
be15f85eae remove sql.ErrNoRows error for select functions for gdb; improve configuration feature for gdb/glog/gview 2019-12-04 16:04:52 +08:00
John
3e27ea0259 change duration parameter type from interface{} to time.Duration for gcache/gfcache 2019-12-04 14:42:09 +08:00
John
2e2363bb41 change routergroup parameter name 'g' to 'group' for unit testing cases of ghttp 2019-12-02 23:00:48 +08:00
John
fcba650348 add more unit testing case for gview 2019-12-02 20:27:21 +08:00
John
40570cdb03 change logger configuration name from 'logging' to 'logger' in gins 2019-12-02 19:55:45 +08:00
John
0cce858641 improve configuration feature for ghttp.Server/gview/glog 2019-11-28 23:19:37 +08:00
John
bb45d8d578 improve template cache feature for gview 2019-11-28 14:29:58 +08:00
John
7e43aa6b9d improve parameter parsing for ghtto.Request; add configuration feature for gview 2019-11-28 11:18:09 +08:00
john
1deb3510f0 improve gerror, ghttp for error stack logging; improve custom view feature for ghttp.Request 2019-11-20 18:45:09 +08:00
john
ad540f7c25 update travis for adding mysql password; add custom view feature for ghttp.Response 2019-11-20 12:09:26 +08:00
John
a4f191c1c6 fix issue in gdb.Model for repeated condition statements; remove concurrent safety feature of gview; add default template file feature for gview 2019-11-19 21:50:17 +08:00
John
43531c2680 improve glog for debug configuration; add GetInt*/GetUint* functions for ghttp.Request 2019-11-19 17:26:06 +08:00
John
635f5d36fd improve log feature of ghttp.Server; remove trace for Notice/Warning functions for glog 2019-11-15 22:50:31 +08:00
John
d7b0228e9e add build-in function 'replace' for gview 2019-11-07 20:56:17 +08:00
John
0e62510c6f improve configuration feature, add instance feature for package glog; add package guuid for UUID feature 2019-11-06 20:22:20 +08:00
John
6c54e73dbd add example for memory storage og gsession 2019-11-05 17:33:06 +08:00
John
21abe62633 improve gfsnotify; add cache for tempalte file content 2019-11-04 22:42:49 +08:00
John
e30b2b0732 improve gsession/gmap/gtree 2019-11-04 21:26:16 +08:00
John
dcb74ee9df comment update 2019-11-01 20:36:09 +08:00
John
82bf21e831 improve gfsnotify 2019-11-01 15:31:26 +08:00
John
66355354fc improve gfsnotify/gview and container 2019-10-31 23:37:33 +08:00
John
8b5ab846b2 improve unit test case for gmutex 2019-10-30 23:01:24 +08:00
John
7225e49aa0 add package intlog for GF internal logging usage; improve redis storage feature for gsession 2019-10-29 16:45:42 +08:00
John
14e9deb254 add more unit test cases for gsession 2019-10-29 10:01:05 +08:00
John
a0722ed51f add redis session support for gsession 2019-10-28 20:48:52 +08:00
John
e9ace9b17a update comment for grpool/glog 2019-10-28 17:16:50 +08:00
John
056d6ebbd9 improve interface design for gsession.Storage 2019-10-28 16:07:01 +08:00
John
f1b7cb37c6 add configuration feature for glog 2019-10-26 10:58:07 +08:00
John
cf34d7bd56 fix issue in gconv.Interfaces; improve storage interface for gsession 2019-10-25 13:49:03 +08:00
John
d4051df5b6 improve gdb/gstr/gconv/garray 2019-10-21 19:13:25 +08:00
John
500efb5601 fix issue in template for ghttp.Server 2019-10-17 20:31:03 +08:00
John
97fe8235da fix issue in session expiring for file storage of gsession; add Pop/Pops functions for gset/gmap 2019-10-16 23:33:06 +08:00
John
3ac0a66887 improve unit test cases for gspath 2019-10-13 21:42:04 +08:00
John
76a9f4ca14 fix security issue in static file feature for ghttp.Server 2019-10-12 23:56:03 +08:00