lib/weakhash, script: gofmt -s

This commit is contained in:
Jakob Borg 2017-02-05 18:49:57 +01:00
parent 05450ca034
commit c0f3f06cfb
2 changed files with 4 additions and 4 deletions

View File

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

View File

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