25 lines
375 B
Go
25 lines
375 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
gen "github.com/whyrusleeping/cbor-gen"
|
||
|
|
||
|
sealing "github.com/filecoin-project/storage-fsm"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
err := gen.WriteMapEncodersToFile("./cbor_gen.go", "sealing",
|
||
|
sealing.Piece{},
|
||
|
sealing.DealInfo{},
|
||
|
sealing.DealSchedule{},
|
||
|
sealing.SectorInfo{},
|
||
|
sealing.Log{},
|
||
|
)
|
||
|
if err != nil {
|
||
|
fmt.Println(err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|