Commit 9656675b authored by Will Scott's avatar Will Scott

add import to ipld in ipldsch_types.go

cleanup from #105
parent 35b4a4f4
......@@ -80,6 +80,10 @@ func Generate(pth string, pkgName string, ts schema.TypeSystem, adjCfg *AdjunctC
// Emit headers, import statements, etc.
fmt.Fprintf(f, "package %s\n\n", pkgName)
fmt.Fprintf(f, doNotEditComment+"\n\n")
fmt.Fprintf(f, "import (\n")
fmt.Fprintf(f, "\tipld \"github.com/ipld/go-ipld-prime\"\n") // referenced for links
fmt.Fprintf(f, ")\n")
fmt.Fprintf(f, "var _ ipld.Node = nil // suppress errors when this dependency is not referenced\n")
// Emit the type table.
EmitTypeTable(pkgName, ts, adjCfg, f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment