diff --git a/lib/weakhash/weakhash_test.go b/lib/weakhash/weakhash_test.go index 8df4e3d65..44735f061 100644 --- a/lib/weakhash/weakhash_test.go +++ b/lib/weakhash/weakhash_test.go @@ -39,8 +39,8 @@ func TestFinder(t *testing.T) { defer finder.Close() expected := map[uint32][]int64{ - 65143183: []int64{1, 27, 53, 79}, - 65798547: []int64{2, 28, 54, 80}, + 65143183: {1, 27, 53, 79}, + 65798547: {2, 28, 54, 80}, } actual := make(map[uint32][]int64) diff --git a/script/genassets.go b/script/genassets.go index b6f13d59d..c26f810ce 100644 --- a/script/genassets.go +++ b/script/genassets.go @@ -79,7 +79,7 @@ func walkerFor(basePath string) filepath.WalkFunc { } type templateVars struct { - Assets []asset + Assets []asset } func main() { @@ -88,7 +88,7 @@ func main() { filepath.Walk(flag.Arg(0), walkerFor(flag.Arg(0))) var buf bytes.Buffer tpl.Execute(&buf, templateVars{ - Assets: assets, + Assets: assets, }) bs, err := format.Source(buf.Bytes()) if err != nil {