Go 1.10 support (#223)
* Update Travis CI to use latest Go releases * Fix go vet issues for Go 1.10 Starting in Go 1.10, the `go test` command now automatically runs `go vet`. This commit fixes two issues flagged by vet that cause `go test` to fail. * Fix gofmt issue for Go 1.10 Go 1.10 introduced a small formatting change with comments in empty multiline slice definitions. This commit attempts to move the offending comment in such a way that all version of gofmt will agree on its location. * Remove go-vet from test.sh Starting in Go 1.10, the `go test` command automatically runs `go vet`, so we don't need to run `go vet` explicitly from within test.sh. Fixes #222
This commit is contained in:
committed by
Thomas Pelletier
parent
05bcc0fb0d
commit
66540cf1fc
+8
-9
@@ -17,15 +17,14 @@ import (
|
||||
|
||||
func main() {
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintln(os.Stderr, `tomll can be used in two ways:
|
||||
Writing to STDIN and reading from STDOUT:
|
||||
cat file.toml | tomll > file.toml
|
||||
|
||||
Reading and updating a list of files:
|
||||
tomll a.toml b.toml c.toml
|
||||
|
||||
When given a list of files, tomll will modify all files in place without asking.
|
||||
`)
|
||||
fmt.Fprintln(os.Stderr, "tomll can be used in two ways:")
|
||||
fmt.Fprintln(os.Stderr, "Writing to STDIN and reading from STDOUT:")
|
||||
fmt.Fprintln(os.Stderr, " cat file.toml | tomll > file.toml")
|
||||
fmt.Fprintln(os.Stderr, "")
|
||||
fmt.Fprintln(os.Stderr, "Reading and updating a list of files:")
|
||||
fmt.Fprintln(os.Stderr, " tomll a.toml b.toml c.toml")
|
||||
fmt.Fprintln(os.Stderr, "")
|
||||
fmt.Fprintln(os.Stderr, "When given a list of files, tomll will modify all files in place without asking.")
|
||||
}
|
||||
flag.Parse()
|
||||
// read from stdin and print to stdout
|
||||
|
||||
Reference in New Issue
Block a user