Add code missing in the previous commit
This commit is contained in:
parent
d6b5850827
commit
fe19806af2
3 changed files with 1362 additions and 0 deletions
15
util/plc/gen/main.go
Normal file
15
util/plc/gen/main.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue