Apply goimports to remaining sources

This commit is contained in:
Tyler Sommer 2020-10-08 15:03:03 -06:00
parent 036150069a
commit 68bf82cab0
No known key found for this signature in database
GPG key ID: C09C010500DBD008
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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"),