Kostadin Plachkov
7d147928ee
fix(gin): data race warning for gin mode ( #1580 )
...
* fix: data race warning (#1180 )
* Fix the tests
* refactor: remove unnecessary imports and optimize codebase
- Remove unnecessary import of `flag`
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* test: refactor test assertions for mode settings
- Update test assertions for mode setting in `mode_test.go`
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
---------
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-05-08 09:13:36 +08:00
Jose Diaz-Gonzalez
1b3c085969
chore(debug): add ability to override the debugPrint statement ( #2337 )
...
* feat: add ability to override the debugPrint statement
This allows users to use a single logger within their application for all printing, regardless of level.
* chore: make the code more readable, as per review comment
* fix: use tab instead of space for indentation
2024-03-11 22:41:07 +08:00
thinkerou
1e1f0b1e76
chore: support min go version 1.18 ( #3511 )
...
* chore: min go version 1.18
* fix build tag error
* remove build tag
* fix word
* remove any.go
* replace interface{} instead of any
2023-03-01 10:03:48 +08:00
mstmdev
fa58bff301
chore(dep): Changes minimum support go version to go1.16 ( #3361 )
2022-10-16 09:32:28 +08:00
mstmdev
088cdd74d4
Fix the value of ginSupportMinGoVer constant by semantic ( #3221 )
2022-07-01 10:31:31 +08:00
thinkerou
6de2245e62
switch min version of go to 1.15 ( #3211 )
2022-06-27 07:11:41 +08:00
thinkerou
4b68a5f12a
chore: update go.mod and remove space from copyright ( #3158 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-28 10:42:28 +08:00
thinkerou
62265c893c
chore: support min version of go: 1.14 ( #2964 )
2022-03-21 10:51:17 +08:00
thinkerou
2bde107686
test support go1.18 ( #2990 )
2022-03-21 09:43:17 +08:00
tyltr
34ce2104ca
optimize code and reduce code cyclomatic complexity ( #2737 )
...
* optimize code and reduce code cyclomatic complexity
* optimize if-condtion
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-06-03 20:12:51 +08:00
thinkerou
ee4de846a8
Remove go1.12 support ( #2679 )
...
* Revert "Adding ppc64le architecture support on travis-ci (#2538 )"
This reverts commit fca3f95d7c
.
* not support go1.12
* fix
* Update errors_test.go
* Update debug.go
2021-04-12 00:29:34 +08:00
Qt
f4bc259de3
fix error gin support min Go version ( #2584 )
...
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-12 08:32:04 +08:00
thinkerou
2ee0e96394
Drop support go1.10 ( #2147 )
2019-11-24 23:07:56 +08:00
guonaihong
b67bc8f005
Gin1.5 bytes.Buffer to strings.Builder ( #1939 )
...
* Replace bytes.Buffer to strings.Builder
* Merge the latest changes
* Update errors.go
2019-06-29 20:43:32 +08:00
Dan Markham
fc920dc561
Drop Support for go1.8 and go1.9 ( #1933 )
2019-06-28 23:43:07 +08:00
Uwe Dauernheim
04eecb1283
Use DefaultWriter and DefaultErrorWriter for debug messages ( #1891 )
...
Aligns behaviour according to documentation.
2019-05-10 14:03:25 +08:00
Dan Markham
094f9a9105
v1.4.0 + #1631 (remove go1.6/go1,7 support) ( #1851 )
...
* remove go1.6 support
* remove build tag
* remove todo
* remove go1.6 support: https://github.com/gin-gonic/gin/pull/1383/commits
* update readme
* remove go1.7 support
* fix embedmd error
* test
* revert it
* revert it
* remove context_17
* add pusher test
* v1.4.0 rc1
2019-05-07 18:32:32 +08:00
henrylee2cn
3d44ff82a1
Make sure the debug log contains line breaks ( #1650 )
...
Many debug logs have no line breaks, so fix them here.
- With pull requests:
- Open your pull request against `master`
- Your pull request should have no more than two commits, if not you should squash them.
- It should pass all tests in the available continuous integrations systems such as TravisCI.
- You should add/modify tests to cover your proposed code changes.
- If your pull request contains a new feature, please document it on the README.
2018-11-22 09:07:00 +08:00
Bo-Yi Wu
402ef120e1
fix: fmt output log to os.Stderr ( #1571 )
...
fix #1560 changes are breaking in App Engine.
cc @giulianobr @philippgille
2018-09-27 08:59:44 +08:00
田欧
834a2ec64c
feat: add go version judge when print debug warning log ( #1572 )
...
* feat: add go version judge when print debug warning log
* remove invalid statement
* use one const
2018-09-26 13:49:11 +08:00
田欧
f2cd3fcb2a
chore: fix typo and add a little anotation ( #1562 )
2018-09-20 11:53:58 +08:00
Bo-Yi Wu
07f1bf0e63
feat: replace debug log with fmt package. ( #1560 )
2018-09-19 13:57:00 +08:00
Jérôme Laforge
90c680ef5c
Let's user define how he wants to log his routes (eg. JSON, key value, or something else) ( #1553 ) ( #1555 )
2018-09-17 12:09:34 +08:00
田欧
c00f21ff23
add go version prerequisite and debug warning ( #1394 )
...
* add go version prerequisite and debug warning
* merge duplicate content
* remove duplicate content
2018-06-26 18:56:43 +08:00
Mike Stipicevic
76ad15ab32
Update comment to reflect correct constant. ( #1144 )
...
The constant is `DebugMode`, as defined in [mode.go](1e88466d23/mode.go (L16)
).
2017-11-02 08:48:54 -05:00
田欧
0cb7c44abc
Print warning log when user create one engine using gin.Default in debug mode ( #1121 )
...
* empty string check
* add log when use Default
* fix unit test error
* fix unit test error
2017-09-29 11:58:57 +08:00
Regner Blok-Andersen
ee7b912a24
Updating IsDebugging docs to remove redudent words. ( #868 )
2017-07-05 09:17:03 -05:00
Olivier Mengué
90911f53f2
debug: fix indent of routes dump for DELETE method
...
'DELETE' is 6 chars and breaks indent of the routes dump (only 5 chars
were reserved for the HTTP method).
2015-12-10 15:15:17 +01:00
Manu Mtz-Almeida
2b3aa51738
Template debugging
2015-08-03 17:28:12 +02:00
Manu Mtz-Almeida
8f3047814e
Comments + IRoutes + IRouter + unexported AbortIndex
2015-07-02 20:24:54 +02:00
Manu Mtz-Almeida
4cc2de6207
Refactors warning messages
2015-06-26 16:08:55 +02:00
Manu Mtz-Almeida
74fe36fa48
Routes() returns the function name of the main handler
2015-06-07 13:49:36 +02:00
Manu Mtz-Almeida
eb91af753d
Better debug warning message
2015-05-24 01:21:23 +02:00
Manu Mtz-Almeida
e2adae9003
Solution for Google App Engine?
...
https://cloud.google.com/appengine/docs/go/logs/
2015-05-24 01:00:17 +02:00
Manu Mtz-Almeida
b690611c38
Better debug logging + unit tests
2015-05-09 03:34:43 +02:00
Manu Mtz-Almeida
eb3e9293ed
Renames []HandleFunc to HandlersChain
2015-05-07 11:30:01 +02:00
Manu Mtz-Almeida
ac0ad2fed8
Improves unit tests
2015-04-08 02:58:35 +02:00
Manu Mtz-Almeida
ea962038e1
Cosmetic changes
2015-04-07 12:27:23 +02:00
Manu Mtz-Almeida
48fec0650d
Cosmetic changes
2015-03-23 06:03:12 +01:00