Browse Source

lib/weakhash, script: gofmt -s

Jakob Borg 8 years ago
parent
commit
c0f3f06cfb
2 changed files with 4 additions and 4 deletions
  1. 2 2
      lib/weakhash/weakhash_test.go
  2. 2 2
      script/genassets.go

+ 2 - 2
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)
 

+ 2 - 2
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 {