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
6cd06a38
Commit
6cd06a38
authored
Jan 15, 2019
by
Eric Myhre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment on one of the more wild usecases we handle
Signed-off-by:
Eric Myhre
<
hash@exultant.us
>
parent
c9cf2100
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
typed/node.go
typed/node.go
+5
-0
No files found.
typed/node.go
View file @
6cd06a38
...
@@ -18,6 +18,11 @@ import (
...
@@ -18,6 +18,11 @@ import (
// defers to the typesystem validation checking to fields that are accessed;
// defers to the typesystem validation checking to fields that are accessed;
// and when using code generation tools, all of the generated native Golang
// and when using code generation tools, all of the generated native Golang
// types produced by the codegen will each individually implement typed.Node.
// types produced by the codegen will each individually implement typed.Node.
//
// Note that typed.Node can wrap *other* typed.Node instances.
// Imagine you have two parts of a very large code base which have codegen'd
// components which are from different versions of a schema. Smooth migrations
// and zero-copy type-safe data sharing between them: We can accommodate that!
type
Node
interface
{
type
Node
interface
{
ipld
.
Node
ipld
.
Node
...
...
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