marshal

package
v0.0.0-...-7cc0ef5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToVocab

func BytesToVocab(bin []byte) (vocab.Type, error)

Unmarshal binary representation bin to a vocab.Type object.

func VocabToBytes

func VocabToBytes(obj vocab.Type) ([]byte, error)

Given an activity streams object, return a marshaled binary representation of that object that may be sent over the wire.

func VocabToMap

func VocabToMap(obj vocab.Type) (map[string]interface{}, error)

Given an activity streams object, return a key/value representation of that object.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL