Apply goimports to remaining sources
This commit is contained in:
parent
036150069a
commit
68bf82cab0
|
@ -1,5 +1,5 @@
|
|||
// Package escape provides Twig-compatible escape functions.
|
||||
package escape// import "github.com/tyler-sommer/stick/twig/escape"
|
||||
package escape // import "github.com/tyler-sommer/stick/twig/escape"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -164,7 +164,7 @@ type propStruct struct {
|
|||
|
||||
func TestGetAttr(t *testing.T) {
|
||||
var getAttrTests = []getAttrTest{
|
||||
newGetAttrTest("map with non-string keys", map[int]string{1:"test"}, 1, "test"),
|
||||
newGetAttrTest("map with non-string keys", map[int]string{1: "test"}, 1, "test"),
|
||||
newGetAttrTest("anon struct property", struct{ Name string }{"Tyler"}, "Name", "Tyler"),
|
||||
newGetAttrTest("struct property", propStruct{"Jackie"}, "Name", "Jackie"),
|
||||
newGetAttrTest("struct method (value, ptr receiver)", testStruct{"John"}, "Name", "John"),
|
||||
|
|
Reference in a new issue