this repo has no description
1package main
2
3import (
4 shtangled "github.com/sotangled/tangled/api/tangled"
5 cbg "github.com/whyrusleeping/cbor-gen"
6)
7
8func main() {
9
10 genCfg := cbg.Gen{
11 MaxStringLength: 1_000_000,
12 }
13
14 if err := genCfg.WriteMapEncodersToFile(
15 "api/tangled/cbor_gen.go",
16 "tangled",
17 shtangled.PublicKey{},
18 shtangled.KnotMember{},
19 ); err != nil {
20 panic(err)
21 }
22
23}