gofmt pass
This commit is contained in:
+1
-1
@@ -6,8 +6,8 @@
|
|||||||
package jpath
|
package jpath
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/pelletier/go-toml"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
. "github.com/pelletier/go-toml"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
package jpath
|
package jpath
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ func matchRecurseFn() PathFn {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func processPath(path QueryPath, context interface{}) []interface{} {
|
func processPath(path QueryPath, context interface{}) []interface{} {
|
||||||
// terminate the path with a collection funciton
|
// terminate the path with a collection funciton
|
||||||
result := []interface{}{}
|
result := []interface{}{}
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ func (p *parser) getToken() *token {
|
|||||||
return &tok
|
return &tok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (p *parser) appendPath(fn PathFn) {
|
func (p *parser) appendPath(fn PathFn) {
|
||||||
p.path = append(p.path, fn)
|
p.path = append(p.path, fn)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package jpath
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
|
||||||
. "github.com/pelletier/go-toml"
|
. "github.com/pelletier/go-toml"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func assertQuery(t *testing.T, toml, query string, ref []interface{}) {
|
func assertQuery(t *testing.T, toml, query string, ref []interface{}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user