chore: support min version of go: 1.14 (#2964)

This commit is contained in:
thinkerou
2022-03-21 10:51:17 +08:00
committed by GitHub
parent 2bde107686
commit 62265c893c
4 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ import (
"strings"
)
const ginSupportMinGoVer = 13
const ginSupportMinGoVer = 14
// IsDebugging returns true if the framework is running in debug mode.
// Use SetMode(gin.ReleaseMode) to disable debug mode.
@ -67,7 +67,7 @@ func getMinVer(v string) (uint64, error) {
func debugPrintWARNINGDefault() {
if v, e := getMinVer(runtime.Version()); e == nil && v <= ginSupportMinGoVer {
debugPrint(`[WARNING] Now Gin requires Go 1.13+.
debugPrint(`[WARNING] Now Gin requires Go 1.14+.
`)
}