From 8585b1ee8ba110344622091c387d47741feed979 Mon Sep 17 00:00:00 2001 From: Julien Schmidt Date: Fri, 27 Oct 2017 20:18:35 +0200 Subject: [PATCH 1/2] Drop support for Go 1.6 and lower --- .travis.yml | 2 -- README.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6369281e8..64b06a70c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ sudo: false language: go go: - - 1.5 - - 1.6 - 1.7 - 1.8 - 1.9 diff --git a/README.md b/README.md index d24aaa0f0..299198d53 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) pac * Optional placeholder interpolation ## Requirements - * Go 1.5 or higher + * Go 1.7 or higher. We aim to support the 3 latest versions of Go. * MySQL (4.1+), MariaDB, Percona Server, Google CloudSQL or Sphinx (2.2.3+) --------------------------------------- From 9d1d6a94316217c28d80a282a8c94ed007d94f15 Mon Sep 17 00:00:00 2001 From: Julien Schmidt Date: Fri, 27 Oct 2017 20:24:28 +0200 Subject: [PATCH 2/2] Remove cloneTLSConfig for legacy Go versions --- utils_legacy.go | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 utils_legacy.go diff --git a/utils_legacy.go b/utils_legacy.go deleted file mode 100644 index a03b10de2..000000000 --- a/utils_legacy.go +++ /dev/null @@ -1,18 +0,0 @@ -// Go MySQL Driver - A MySQL-Driver for Go's database/sql package -// -// Copyright 2017 The Go-MySQL-Driver Authors. All rights reserved. -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. - -// +build !go1.7 - -package mysql - -import "crypto/tls" - -func cloneTLSConfig(c *tls.Config) *tls.Config { - clone := *c - return &clone -}