From 00363edac56ebf744c554e2d83ebf1ef455e4bef Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 28 Feb 2020 03:47:01 -0800 Subject: [PATCH] remove support for go 1.11 (#444) --- .travis.yml | 2 +- cmd/tlsconfig/tls_version_go11.go | 31 ------------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 cmd/tlsconfig/tls_version_go11.go diff --git a/.travis.yml b/.travis.yml index 26bb6d3..265b2a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: go go: - - "1.11.x" - "1.12.x" - "1.13.x" + - "1.14.x" - tip install: diff --git a/cmd/tlsconfig/tls_version_go11.go b/cmd/tlsconfig/tls_version_go11.go deleted file mode 100644 index b54b996..0000000 --- a/cmd/tlsconfig/tls_version_go11.go +++ /dev/null @@ -1,31 +0,0 @@ -// +build !go1.12 - -// This file can be removed once go1.11 is no longer supported - -package main - -import ( - "crypto/tls" - "sort" -) - -func mapTLSVersions(tlsVersions []string) []int { - var versions []int - for _, tlsVersion := range tlsVersions { - switch tlsVersion { - case "TLSv1.2": - versions = append(versions, tls.VersionTLS12) - case "TLSv1.1": - versions = append(versions, tls.VersionTLS11) - case "TLSv1": - versions = append(versions, tls.VersionTLS10) - case "SSLv3": - // unsupported from go1.14 - versions = append(versions, tls.VersionSSL30) - default: - continue - } - } - sort.Ints(versions) - return versions -}