container: Reader should keep around and expose the sealed bytes

This commit is contained in:
Michael Muré
2025-01-23 17:12:26 +01:00
parent e218b49577
commit 9d047f038d
6 changed files with 83 additions and 29 deletions

View File

@@ -217,6 +217,7 @@ func (g *generator) writeGoFile() error {
Println("import (")
Println("\t\"github.com/ipfs/go-cid\"")
Println()
Println("\t\"github.com/ucan-wg/go-ucan/token\"")
Println("\t\"github.com/ucan-wg/go-ucan/token/delegation\"")
Println(")")
@@ -242,7 +243,7 @@ func (g *generator) writeGoFile() error {
Println("}")
Println()
Println("var AllBundles = []*delegation.Bundle{")
Println("var AllBundles = []token.Bundle[*delegation.Token]{")
for _, d := range g.dlgs {
Printf("\t%sBundle,\n", d.name)
}