cmd/clef: extend go generate to format asset file

This commit is contained in:
Péter Szilágyi 2019-04-11 13:08:38 +03:00
parent bb9fd61b76
commit 06a43b76db
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D
2 changed files with 17 additions and 16 deletions

View file

@ -84,7 +84,7 @@ func resources4byteJson() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "resources/4byte.json", size: 5500821, mode: os.FileMode(0664), modTime: time.Unix(1552398455, 0)}
info := bindataFileInfo{name: "resources/4byte.json", size: 5500821, mode: os.FileMode(420), modTime: time.Unix(1554975984, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x86, 0xc8, 0x50, 0xc5, 0x1c, 0xeb, 0xbb, 0xd, 0xf9, 0x16, 0x1a, 0xde, 0xa0, 0x5, 0x2f, 0xdd, 0xfe, 0x56, 0x2d, 0xfb, 0x3b, 0xa4, 0x9c, 0xf3, 0x1b, 0xdb, 0xd0, 0x2f, 0xd, 0xc5, 0x12, 0xc1}}
return a, nil
}
@ -224,8 +224,8 @@ type bintree struct {
}
var _bintree = &bintree{nil, map[string]*bintree{
"resources": &bintree{nil, map[string]*bintree{
"4byte.json": &bintree{resources4byteJson, map[string]*bintree{}},
"resources": {nil, map[string]*bintree{
"4byte.json": {resources4byteJson, map[string]*bintree{}},
}},
}}

View file

@ -18,7 +18,8 @@
// arbitrary data.
package main
//go:generate go-bindata -o ./bindata.go ./resources/4byte.json
//go:generate go-bindata -o bindata.go resources/4byte.json
//go:generate gofmt -s -w bindata.go
import (
"bufio"