Fixes formatting of various generated outputs to be
more compatible with `go fmt`. This partially addresses issue #34 Signed-off-by: Jim Teeuwen <jimteeuwen@gmail.com>
This commit is contained in:
parent
394d5b27c0
commit
17800c65a0
4
debug.go
4
debug.go
|
@ -52,14 +52,14 @@ func bindata_read(path, name string) ([]byte, error) {
|
||||||
// A debug entry is simply a function which reads the asset from
|
// A debug entry is simply a function which reads the asset from
|
||||||
// the original file (e.g.: from disk).
|
// the original file (e.g.: from disk).
|
||||||
func writeDebugAsset(w io.Writer, asset *Asset) error {
|
func writeDebugAsset(w io.Writer, asset *Asset) error {
|
||||||
_, err := fmt.Fprintf(w, `
|
_, err := fmt.Fprintf(w, `// %s reads file data from disk. It returns an error on failure.
|
||||||
// %s reads file data from disk. It returns an error on failure.
|
|
||||||
func %s() ([]byte, error) {
|
func %s() ([]byte, error) {
|
||||||
return bindata_read(
|
return bindata_read(
|
||||||
%q,
|
%q,
|
||||||
%q,
|
%q,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
`, asset.Func, asset.Func, asset.Path, asset.Name)
|
`, asset.Func, asset.Func, asset.Path, asset.Name)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
3
toc.go
3
toc.go
|
@ -28,8 +28,7 @@ func writeTOC(w io.Writer, toc []Asset) error {
|
||||||
|
|
||||||
// writeTOCHeader writes the table of contents file header.
|
// writeTOCHeader writes the table of contents file header.
|
||||||
func writeTOCHeader(w io.Writer) error {
|
func writeTOCHeader(w io.Writer) error {
|
||||||
_, err := fmt.Fprintf(w, `
|
_, err := fmt.Fprintf(w, `// Asset loads and returns the asset for the given name.
|
||||||
// Asset loads and returns the asset for the given name.
|
|
||||||
// It returns an error if the asset could not be found or
|
// It returns an error if the asset could not be found or
|
||||||
// could not be loaded.
|
// could not be loaded.
|
||||||
func Asset(name string) ([]byte, error) {
|
func Asset(name string) ([]byte, error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user