mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/clef: extend go generate to format asset file
This commit is contained in:
parent
bb9fd61b76
commit
06a43b76db
2 changed files with 17 additions and 16 deletions
|
|
@ -84,7 +84,7 @@ func resources4byteJson() (*asset, error) {
|
||||||
return nil, err
|
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}}
|
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
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
@ -224,8 +224,8 @@ type bintree struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var _bintree = &bintree{nil, map[string]*bintree{
|
var _bintree = &bintree{nil, map[string]*bintree{
|
||||||
"resources": &bintree{nil, map[string]*bintree{
|
"resources": {nil, map[string]*bintree{
|
||||||
"4byte.json": &bintree{resources4byteJson, map[string]*bintree{}},
|
"4byte.json": {resources4byteJson, map[string]*bintree{}},
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
// arbitrary data.
|
// arbitrary data.
|
||||||
package main
|
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 (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue