Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultIndexName string = "@index"
Variables ¶
This section is empty.
Functions ¶
func ParseNodeIndex ¶
func ToLinkedData ¶
Like ToLinkedDataAll but on the root node only, for use in Walk
func ToLinkedDataAll ¶
Reorganize the data to be valid JSON-LD. This expand custom IPLD directives and unescape keys.
The main processing now is to transform a IPLD data structure like this:
{ "@container": "@index", "@index": "index-name", "@attrs": { "key": "value", }, "index": { ... } }
to:
{ "key": "value", "index-name": { "index": { ... } } }
In that case, it is good practice to define in the context the following type (this function cannot change the context):
"index-name": { "@container": "@index" }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.