Bump min version to 1.9

This commit is contained in:
Dan Markham 2019-04-01 23:03:32 -07:00
parent b6b2ab2415
commit 33e5d9f63d
No known key found for this signature in database
GPG Key ID: 7994037517927D77
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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.
`)
}