From be4b7c1474941a38644d6622bb382efc3b4131cf Mon Sep 17 00:00:00 2001 From: Ryan Boehning Date: Thu, 15 Mar 2018 10:50:30 -0700 Subject: [PATCH] Update for Go 1.10 (#39) * Add Go 1.10 to .travis.yml. * Add quotes to Go versions in .travis.yml, because unquoted 1.10 is interpreted as Go 1.1. * Change .travis.yml references from 'tip' to 'master'. 'tip' is a legacy reference coming from the days when the Go project used mercurial instead of git. --- .travis.yml | 11 ++++++----- log/log_example_test.go | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 19d1d80..9bde515 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,12 @@ language: go go: -- 1.7 -- 1.8 -- 1.9 -- tip +- "1.7" +- "1.8" +- "1.9" +- "1.10" +- "master" matrix: allow_failures: - - go: tip + - go: "master" script: go test -v -race -cpu=1,2,4 -bench . -benchmem ./... diff --git a/log/log_example_test.go b/log/log_example_test.go index 32f3699..16fed27 100644 --- a/log/log_example_test.go +++ b/log/log_example_test.go @@ -102,7 +102,7 @@ func ExampleFatal() { // This example uses command-line flags to demonstrate various outputs // depending on the chosen log level. -func Example_LevelFlag() { +func Example() { setup() debug := flag.Bool("debug", false, "sets log level to debug")