package main import ( "log" typegen "github.com/whyrusleeping/cbor-gen" "github.com/uabluerail/indexer/util/plc" ) func main() { if err := typegen.WriteMapEncodersToFile("cbor_gen.go", "plc", plc.Service{}, plc.Op{}, plc.Tombstone{}, plc.LegacyCreateOp{}); err != nil { log.Fatalf("%s", err) } }