From 33e5d9f63d13a9bbe1e6ee795286f3349b09beb1 Mon Sep 17 00:00:00 2001 From: Dan Markham Date: Mon, 1 Apr 2019 23:03:32 -0700 Subject: [PATCH] Bump min version to 1.9 --- .travis.yml | 1 - README.md | 2 +- debug.go | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f6ec8a82..518d69fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: go matrix: fast_finish: true include: - - go: 1.8.x - go: 1.9.x - go: 1.10.x - go: 1.11.x diff --git a/README.md b/README.md index ececa60c..73f86ecb 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ For more feature details, please see the [Gin website introduction](https://gin- ### Getting Gin -The first need [Go](https://golang.org/) installed (**version 1.8+ is required**), then you can use the below Go command to install Gin. +The first need [Go](https://golang.org/) installed (**version 1.9+ is required**), then you can use the below Go command to install Gin. ```sh $ go get -u github.com/gin-gonic/gin diff --git a/debug.go b/debug.go index 6d40a5da..394563e7 100644 --- a/debug.go +++ b/debug.go @@ -14,7 +14,7 @@ import ( "strings" ) -const ginSupportMinGoVer = 8 +const ginSupportMinGoVer = 9 // IsDebugging returns true if the framework is running in debug mode. // Use SetMode(gin.ReleaseMode) to disable debug mode. @@ -69,7 +69,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.8 or later and Go 1.9 will be required soon. + debugPrint(`[WARNING] Now Gin requires Go 1.9 or later and Go 1.10 will be required soon. `) }