Skip to content

Commit

Permalink
Constraint current implementation up to Go 1.8.
Browse files Browse the repository at this point in the history
This commit is in preparation of the following commit which will add
support for Go 1.9.

It constraints the current implementation (meant for Go 1.8) so that
it will not be used in Go 1.9. A different implementation, located
elsewhere will be used for Go 1.9. See next commit for details.
  • Loading branch information
dmitshur committed Aug 28, 2017
1 parent 0c5af37 commit a1e0e68
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
language: go
sudo: false

matrix:
include:
- go: 1.2
- go: 1.3
- go: 1.4
- go: 1.5
- go: 1.6
- go: tip

language: go
go:
- 1.2
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7
- 1.8
install:
- # Skip

- # Skip.
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d .)
Expand Down
2 changes: 1 addition & 1 deletion go16.go → go16-18.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.6
// +build go1.6,!go1.9

package gotool

Expand Down
2 changes: 2 additions & 0 deletions match.go → match18.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

// +build !go1.9

package gotool

import (
Expand Down
2 changes: 2 additions & 0 deletions match_test.go → match18_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

// +build !go1.9

package gotool

import (
Expand Down

0 comments on commit a1e0e68

Please sign in to comment.