mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
lib/weakhash, script: gofmt -s
This commit is contained in:
parent
05450ca034
commit
c0f3f06cfb
@ -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)
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user