Skip to content
Myr

Drop Support for go1.8 and go1.9 (#1933)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dan Markham · committed by Bo-Yi Wu · parent 46acb91 · Browse files · 4 files+4 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+4 added−6 removed

  • other:+4 added−6 removed

4 files+4 added−6 removed

modified:.travis.yml-2 removed
modified:debug_test.go+1 added-1 removed
89 unmodified lines
90 SetMode(TestMode)91 })92 m, e := getMinVer(runtime.Version())93 if e == nil && m <= ginSupportMinGoVer {94 assert.Equal(t, "[GIN-debug] [WARNING] Now Gin requires Go 1.8 or later and Go 1.9 will be required soon.\n\n[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)94 assert.Equal(t, "[GIN-debug] [WARNING] Now Gin requires Go 1.10 or later and Go 1.11 will be required soon.\n\n[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)95 } else {96 assert.Equal(t, "[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)97 }98}
55 unmodified lines
modified:debug.go+2 added-2 removed
11 unmodified lines
12 "strconv"13 "strings"14)1516const ginSupportMinGoVer = 816const ginSupportMinGoVer = 101718// IsDebugging returns true if the framework is running in debug mode.19// Use SetMode(gin.ReleaseMode) to disable debug mode.20func IsDebugging() bool {
46 unmodified lines
67}6869func debugPrintWARNINGDefault() {70 if v, e := getMinVer(runtime.Version()); e == nil && v <= ginSupportMinGoVer {71 debugPrint(`[WARNING] Now Gin requires Go 1.8 or later and Go 1.9 will be required soon.71 debugPrint(`[WARNING] Now Gin requires Go 1.10 or later and Go 1.11 will be required soon.7273`)74 }75 debugPrint(`[WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
29 unmodified lines
modified:README.md+1 added-1 removed
68 unmodified lines
69## Installation7071To install Gin package, you need to install Go and set your Go workspace first.72731. The first need [Go](https://golang.org/) installed (**version 1.8+ is required**), then you can use the below Go command to install Gin.731. The first need [Go](https://golang.org/) installed (**version 1.10+ is required**), then you can use the below Go command to install Gin.7475```sh76$ go get -u github.com/gin-gonic/gin77```
2039 unmodified lines