commit
d0a5f1749d
10
Makefile
10
Makefile
|
@ -5,12 +5,20 @@ regen:
|
||||||
make -C testdata regen
|
make -C testdata regen
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: errcheck
|
check: errcheck go-nyet
|
||||||
errcheck testdata/out/compress-memcopy.go
|
errcheck testdata/out/compress-memcopy.go
|
||||||
errcheck testdata/out/compress-nomemcopy.go
|
errcheck testdata/out/compress-nomemcopy.go
|
||||||
errcheck testdata/out/debug.go
|
errcheck testdata/out/debug.go
|
||||||
errcheck testdata/out/nocompress-memcopy.go
|
errcheck testdata/out/nocompress-memcopy.go
|
||||||
errcheck testdata/out/nocompress-nomemcopy.go
|
errcheck testdata/out/nocompress-nomemcopy.go
|
||||||
|
go-nyet testdata/out/compress-memcopy.go
|
||||||
|
go-nyet testdata/out/compress-nomemcopy.go
|
||||||
|
go-nyet testdata/out/debug.go
|
||||||
|
go-nyet testdata/out/nocompress-memcopy.go
|
||||||
|
go-nyet testdata/out/nocompress-nomemcopy.go
|
||||||
|
|
||||||
errcheck:
|
errcheck:
|
||||||
go get github.com/kisielk/errcheck
|
go get github.com/kisielk/errcheck
|
||||||
|
|
||||||
|
go-nyet:
|
||||||
|
go get github.com/barakmich/go-nyet
|
||||||
|
|
4
testdata/out/compress-memcopy.go
vendored
4
testdata/out/compress-memcopy.go
vendored
|
@ -231,8 +231,8 @@ func AssetDir(name string) ([]string, error) {
|
||||||
return nil, fmt.Errorf("Asset %s not found", name)
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
}
|
}
|
||||||
rv := make([]string, 0, len(node.Children))
|
rv := make([]string, 0, len(node.Children))
|
||||||
for name := range node.Children {
|
for childName := range node.Children {
|
||||||
rv = append(rv, name)
|
rv = append(rv, childName)
|
||||||
}
|
}
|
||||||
return rv, nil
|
return rv, nil
|
||||||
}
|
}
|
||||||
|
|
4
testdata/out/compress-nomemcopy.go
vendored
4
testdata/out/compress-nomemcopy.go
vendored
|
@ -241,8 +241,8 @@ func AssetDir(name string) ([]string, error) {
|
||||||
return nil, fmt.Errorf("Asset %s not found", name)
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
}
|
}
|
||||||
rv := make([]string, 0, len(node.Children))
|
rv := make([]string, 0, len(node.Children))
|
||||||
for name := range node.Children {
|
for childName := range node.Children {
|
||||||
rv = append(rv, name)
|
rv = append(rv, childName)
|
||||||
}
|
}
|
||||||
return rv, nil
|
return rv, nil
|
||||||
}
|
}
|
||||||
|
|
4
testdata/out/debug.go
vendored
4
testdata/out/debug.go
vendored
|
@ -182,8 +182,8 @@ func AssetDir(name string) ([]string, error) {
|
||||||
return nil, fmt.Errorf("Asset %s not found", name)
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
}
|
}
|
||||||
rv := make([]string, 0, len(node.Children))
|
rv := make([]string, 0, len(node.Children))
|
||||||
for name := range node.Children {
|
for childName := range node.Children {
|
||||||
rv = append(rv, name)
|
rv = append(rv, childName)
|
||||||
}
|
}
|
||||||
return rv, nil
|
return rv, nil
|
||||||
}
|
}
|
||||||
|
|
4
testdata/out/nocompress-memcopy.go
vendored
4
testdata/out/nocompress-memcopy.go
vendored
|
@ -199,8 +199,8 @@ func AssetDir(name string) ([]string, error) {
|
||||||
return nil, fmt.Errorf("Asset %s not found", name)
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
}
|
}
|
||||||
rv := make([]string, 0, len(node.Children))
|
rv := make([]string, 0, len(node.Children))
|
||||||
for name := range node.Children {
|
for childName := range node.Children {
|
||||||
rv = append(rv, name)
|
rv = append(rv, childName)
|
||||||
}
|
}
|
||||||
return rv, nil
|
return rv, nil
|
||||||
}
|
}
|
||||||
|
|
4
testdata/out/nocompress-nomemcopy.go
vendored
4
testdata/out/nocompress-nomemcopy.go
vendored
|
@ -221,8 +221,8 @@ func AssetDir(name string) ([]string, error) {
|
||||||
return nil, fmt.Errorf("Asset %s not found", name)
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
}
|
}
|
||||||
rv := make([]string, 0, len(node.Children))
|
rv := make([]string, 0, len(node.Children))
|
||||||
for name := range node.Children {
|
for childName := range node.Children {
|
||||||
rv = append(rv, name)
|
rv = append(rv, childName)
|
||||||
}
|
}
|
||||||
return rv, nil
|
return rv, nil
|
||||||
}
|
}
|
||||||
|
|
4
toc.go
4
toc.go
|
@ -117,8 +117,8 @@ func AssetDir(name string) ([]string, error) {
|
||||||
return nil, fmt.Errorf("Asset %%s not found", name)
|
return nil, fmt.Errorf("Asset %%s not found", name)
|
||||||
}
|
}
|
||||||
rv := make([]string, 0, len(node.Children))
|
rv := make([]string, 0, len(node.Children))
|
||||||
for name := range node.Children {
|
for childName := range node.Children {
|
||||||
rv = append(rv, name)
|
rv = append(rv, childName)
|
||||||
}
|
}
|
||||||
return rv, nil
|
return rv, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user