delegationtest: make the generator a main()

This commit is contained in:
Michael Muré
2024-11-20 15:35:33 +01:00
parent aea1880386
commit c19e38356d
5 changed files with 30 additions and 40 deletions

View File

@@ -0,0 +1,17 @@
package main
import (
"github.com/ucan-wg/go-ucan/did/didtest"
)
func main() {
gen := &generator{}
err := gen.chainPersonas(didtest.Personas(), acc{}, noopVariant())
if err != nil {
panic(err)
}
err = gen.writeGoFile()
if err != nil {
panic(err)
}
}