From 1dba4b3954bc059efc3991ec364f9f9a35f597d2 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sat, 17 Sep 2016 21:11:01 -0700 Subject: [PATCH] Update Travis to Go 1.7, fix vet issue. --- .travis.yml | 10 ++++++++-- README.md | 7 +++++-- main_test.go | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index bcf9f82..f51cf6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,14 @@ +sudo: false language: go go: - - 1.5 + - 1.7 + - tip +matrix: + allow_failures: + - go: tip + fast_finish: true install: - - go get golang.org/x/tools/cmd/vet + - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). script: - go get -t -v ./... - diff -u <(echo -n) <(gofmt -d -s .) diff --git a/README.md b/README.md index cb76fe1..8c714bc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -# sanitized_anchor_name [![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name) +sanitized_anchor_name +===================== + +[![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name) Package sanitized_anchor_name provides a func to create sanitized anchor names. @@ -28,4 +31,4 @@ fmt.Println(anchorName) License ------- -- [MIT License](LICENSE) +- [MIT License](LICENSE) diff --git a/main_test.go b/main_test.go index ad03201..7ce323b 100644 --- a/main_test.go +++ b/main_test.go @@ -15,7 +15,7 @@ func ExampleCreate() { // this-is-a-header } -func ExampleCreate2() { +func ExampleCreate_two() { fmt.Println(sanitized_anchor_name.Create("This is a header")) fmt.Println(sanitized_anchor_name.Create("This is also a header")) fmt.Println(sanitized_anchor_name.Create("main.go"))