Categorygithub.com/go-ap/jsonld
modulepackage
0.0.0-20221030091449-f2a191312c73
Repository: https://github.com/go-ap/jsonld.git
Documentation: pkg.go.dev

# README

JSON-ld for Go

MIT Licensed Build Status Test Coverage Go Report Card

Basic lib for using activity pub API in Go.

Usage

import "github.com/go-ap/jsonld"

# Functions

No description provided by the author
LoadTag used by structs from the ActivityPub package to Marshal and Unmarshal to/from JSON-LD.
No description provided by the author
TagName used by structs from the ActivityPub package to Marshal and Unmarshal to/from JSON-LD.
Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.
Valid reports whether data is a valid JSON encoding.
WithContext.

# Constants

@base Used to set the base IRI against which relative IRIs are resolved.
@container Used to set the default container type for a term.
ContentType is the content type of JsonLD documents.
@context Used to define the short-hand names that are used throughout a JSON-LD document.
@graph Used to express a graph.
@idUsed to uniquely identify things that are being described in the document with IRIs or blank node identifiers.
@index Used to specify that a container is used to index information and that processing should continue deeper into a JSON data structure.
@language Used to specify the language for a particular string value or the default language of a JSON-LD document.
@listUsed to express an ordered set of data.
No description provided by the author
No description provided by the author
@reverse Used to express reverse properties.
@set Used to express an unordered set of data and to ensure that values are always represented as arrays.
@typeUsed to set the data type of a node or typed value.
@value Used to specify the data that is associated with a particular property in the graph.
@vocab Used to expand properties and values in @type with a common prefix IRI.

# Variables

No description provided by the author

# Structs

ContextElement is used to map terms to IRIs or JSON objects.
No description provided by the author
An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
Before Go 1.2, an InvalidUTF8Error was returned by Marshal when attempting to encode a string value with invalid UTF-8 sequences.
No description provided by the author
A SyntaxError is a description of a JSON syntax error.
Tag used by structs from the ActivityPub package to Marshal and Unmarshal to/from JSON-LD.
An UnmarshalFieldError describes a JSON object key that led to an unexported (and therefore unwritable) struct field.
An UnmarshalTypeError describes a JSON value that was not appropriate for a value of a specific Go type.
An UnsupportedTypeError is returned by Marshal when attempting to encode an unsupported value type.
No description provided by the author

# Interfaces

Collapsible is an interface used by the JSON-LD marshaller to collapse a struct to one single value.
No description provided by the author
Nillable.

# Type aliases

Context is of of the basic JSON-LD elements.
No description provided by the author
No description provided by the author
A Number represents a JSON number literal.
No description provided by the author
No description provided by the author