Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
9656675b
Commit
9656675b
authored
Nov 17, 2020
by
Will Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add import to ipld in ipldsch_types.go
cleanup from #105
parent
35b4a4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
schema/gen/go/generate.go
schema/gen/go/generate.go
+4
-0
No files found.
schema/gen/go/generate.go
View file @
9656675b
...
...
@@ -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
,
"
\t
ipld
\"
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment