From 1931a4b5abdaf9f441246c5e5604b7575441cfc7 Mon Sep 17 00:00:00 2001 From: joyhope Date: Wed, 18 Apr 2018 10:49:47 +0800 Subject: [PATCH] compatible with old golang version --- internal/version/version16.go | 2 +- internal/version/version17.go | 2 +- internal/version/version18.go | 1 + internal/version/version19.go | 7 +++++++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 internal/version/version19.go diff --git a/internal/version/version16.go b/internal/version/version16.go index db590d7..bb311da 100644 --- a/internal/version/version16.go +++ b/internal/version/version16.go @@ -1,5 +1,5 @@ // +build go1.6 -// +build !go1.7,!go1.8 +// +build !go1.7,!go1.8,!go1.9 package version diff --git a/internal/version/version17.go b/internal/version/version17.go index 0b445e2..9706029 100644 --- a/internal/version/version17.go +++ b/internal/version/version17.go @@ -1,5 +1,5 @@ // +build go1.7 -// +build !go1.8 +// +build !go1.8,!go1.9 package version diff --git a/internal/version/version18.go b/internal/version/version18.go index 65af048..3b29a76 100644 --- a/internal/version/version18.go +++ b/internal/version/version18.go @@ -1,4 +1,5 @@ // +build go1.8 +// +build !go1.9 package version diff --git a/internal/version/version19.go b/internal/version/version19.go new file mode 100644 index 0000000..b96ad71 --- /dev/null +++ b/internal/version/version19.go @@ -0,0 +1,7 @@ +// +build go1.9,go1.10 + +package version + +const ( + Version = 1.9 +)