Skip to content

Commit

Permalink
Update Travis to Go 1.7, fix vet issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitshur committed Sep 18, 2016
1 parent 10ef21a commit 1dba4b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .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 .)
Expand Down
7 changes: 5 additions & 2 deletions 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.

Expand Down Expand Up @@ -28,4 +31,4 @@ fmt.Println(anchorName)
License
-------

- [MIT License](LICENSE)
- [MIT License](LICENSE)
2 changes: 1 addition & 1 deletion main_test.go
Expand Up @@ -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"))
Expand Down

0 comments on commit 1dba4b3

Please sign in to comment.