Comment style
This commit is contained in:
parent
ffff253524
commit
4f258b3140
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
func writeRestore(w io.Writer) error {
|
func writeRestore(w io.Writer) error {
|
||||||
_, err := fmt.Fprintf(w, `
|
_, err := fmt.Fprintf(w, `
|
||||||
// Restore an asset under the given directory
|
// RestoreAsset restores an asset under the given directory
|
||||||
func RestoreAsset(dir, name string) error {
|
func RestoreAsset(dir, name string) error {
|
||||||
data, err := Asset(name)
|
data, err := Asset(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -36,7 +36,7 @@ func RestoreAsset(dir, name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore assets under the given directory recursively
|
// RestoreAssets restores an asset under the given directory recursively
|
||||||
func RestoreAssets(dir, name string) error {
|
func RestoreAssets(dir, name string) error {
|
||||||
children, err := AssetDir(name)
|
children, err := AssetDir(name)
|
||||||
if err != nil { // File
|
if err != nil { // File
|
||||||
|
|
4
testdata/out/compress-memcopy.go
vendored
4
testdata/out/compress-memcopy.go
vendored
|
@ -260,7 +260,7 @@ var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// Restore an asset under the given directory
|
// RestoreAsset restores an asset under the given directory
|
||||||
func RestoreAsset(dir, name string) error {
|
func RestoreAsset(dir, name string) error {
|
||||||
data, err := Asset(name)
|
data, err := Asset(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -285,7 +285,7 @@ func RestoreAsset(dir, name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore assets under the given directory recursively
|
// RestoreAssets restores an asset under the given directory recursively
|
||||||
func RestoreAssets(dir, name string) error {
|
func RestoreAssets(dir, name string) error {
|
||||||
children, err := AssetDir(name)
|
children, err := AssetDir(name)
|
||||||
if err != nil { // File
|
if err != nil { // File
|
||||||
|
|
4
testdata/out/compress-nomemcopy.go
vendored
4
testdata/out/compress-nomemcopy.go
vendored
|
@ -270,7 +270,7 @@ var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// Restore an asset under the given directory
|
// RestoreAsset restores an asset under the given directory
|
||||||
func RestoreAsset(dir, name string) error {
|
func RestoreAsset(dir, name string) error {
|
||||||
data, err := Asset(name)
|
data, err := Asset(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -295,7 +295,7 @@ func RestoreAsset(dir, name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore assets under the given directory recursively
|
// RestoreAssets restores an asset under the given directory recursively
|
||||||
func RestoreAssets(dir, name string) error {
|
func RestoreAssets(dir, name string) error {
|
||||||
children, err := AssetDir(name)
|
children, err := AssetDir(name)
|
||||||
if err != nil { // File
|
if err != nil { // File
|
||||||
|
|
4
testdata/out/debug.go
vendored
4
testdata/out/debug.go
vendored
|
@ -211,7 +211,7 @@ var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// Restore an asset under the given directory
|
// RestoreAsset restores an asset under the given directory
|
||||||
func RestoreAsset(dir, name string) error {
|
func RestoreAsset(dir, name string) error {
|
||||||
data, err := Asset(name)
|
data, err := Asset(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -236,7 +236,7 @@ func RestoreAsset(dir, name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore assets under the given directory recursively
|
// RestoreAssets restores an asset under the given directory recursively
|
||||||
func RestoreAssets(dir, name string) error {
|
func RestoreAssets(dir, name string) error {
|
||||||
children, err := AssetDir(name)
|
children, err := AssetDir(name)
|
||||||
if err != nil { // File
|
if err != nil { // File
|
||||||
|
|
4
testdata/out/nocompress-memcopy.go
vendored
4
testdata/out/nocompress-memcopy.go
vendored
|
@ -228,7 +228,7 @@ var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// Restore an asset under the given directory
|
// RestoreAsset restores an asset under the given directory
|
||||||
func RestoreAsset(dir, name string) error {
|
func RestoreAsset(dir, name string) error {
|
||||||
data, err := Asset(name)
|
data, err := Asset(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -253,7 +253,7 @@ func RestoreAsset(dir, name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore assets under the given directory recursively
|
// RestoreAssets restores an asset under the given directory recursively
|
||||||
func RestoreAssets(dir, name string) error {
|
func RestoreAssets(dir, name string) error {
|
||||||
children, err := AssetDir(name)
|
children, err := AssetDir(name)
|
||||||
if err != nil { // File
|
if err != nil { // File
|
||||||
|
|
4
testdata/out/nocompress-nomemcopy.go
vendored
4
testdata/out/nocompress-nomemcopy.go
vendored
|
@ -250,7 +250,7 @@ var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// Restore an asset under the given directory
|
// RestoreAsset restores an asset under the given directory
|
||||||
func RestoreAsset(dir, name string) error {
|
func RestoreAsset(dir, name string) error {
|
||||||
data, err := Asset(name)
|
data, err := Asset(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -275,7 +275,7 @@ func RestoreAsset(dir, name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore assets under the given directory recursively
|
// RestoreAssets restores an asset under the given directory recursively
|
||||||
func RestoreAssets(dir, name string) error {
|
func RestoreAssets(dir, name string) error {
|
||||||
children, err := AssetDir(name)
|
children, err := AssetDir(name)
|
||||||
if err != nil { // File
|
if err != nil { // File
|
||||||
|
|
Loading…
Reference in New Issue
Block a user