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
@@ -2,12 +2,13 @@ package query
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/pelletier/go-toml"
|
||||
"io/ioutil"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/pelletier/go-toml"
|
||||
)
|
||||
|
||||
type queryTestNode struct {
|
||||
@@ -406,8 +407,7 @@ func TestQueryFilterFn(t *testing.T) {
|
||||
|
||||
assertQueryPositions(t, string(buff),
|
||||
"$..[?(float)]",
|
||||
[]interface{}{
|
||||
// no float values in document
|
||||
[]interface{}{ // no float values in document
|
||||
})
|
||||
|
||||
tv, _ := time.Parse(time.RFC3339, "1979-05-27T07:32:00Z")
|
||||
|
||||
Reference in New Issue
Block a user