plc-mirror/util/plc/gen/main.go

16 lines
307 B
Go

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)
}
}