Skip to content

Commit 2ee0e96

Browse files
thinkerouappleboy
authored andcommitted
Drop support go1.10 (gin-gonic#2147)
1 parent 70ca31b commit 2ee0e96

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: go
33
matrix:
44
fast_finish: true
55
include:
6-
- go: 1.10.x
76
- go: 1.11.x
87
env: GO111MODULE=on
98
- go: 1.12.x

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Gin is a web framework written in Go (Golang). It features a martini-like API wi
7070

7171
To install Gin package, you need to install Go and set your Go workspace first.
7272

73-
1. The first need [Go](https://golang.org/) installed (**version 1.10+ is required**), then you can use the below Go command to install Gin.
73+
1. The first need [Go](https://golang.org/) installed (**version 1.11+ is required**), then you can use the below Go command to install Gin.
7474

7575
```sh
7676
$ go get -u github.com/gin-gonic/gin

debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func getMinVer(v string) (uint64, error) {
6767

6868
func debugPrintWARNINGDefault() {
6969
if v, e := getMinVer(runtime.Version()); e == nil && v <= ginSupportMinGoVer {
70-
debugPrint(`[WARNING] Now Gin requires Go 1.10 or later and Go 1.11 will be required soon.
70+
debugPrint(`[WARNING] Now Gin requires Go 1.11 or later and Go 1.12 will be required soon.
7171
7272
`)
7373
}

debug_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestDebugPrintWARNINGDefault(t *testing.T) {
9191
})
9292
m, e := getMinVer(runtime.Version())
9393
if e == nil && m <= ginSupportMinGoVer {
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)
94+
assert.Equal(t, "[GIN-debug] [WARNING] Now Gin requires Go 1.11 or later and Go 1.12 will be required soon.\n\n[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)
9595
} else {
9696
assert.Equal(t, "[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)
9797
}

0 commit comments

Comments
 (0)