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

16 lines
299 B
Go

package main
import (
"log"
typegen "github.com/whyrusleeping/cbor-gen"
"bsky.watch/plc-mirror/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)
}
}