prop

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIRIs

func AppendIRIs(target Appender, iris []*url.URL)

Append all elements in iris to target.

func Content

func Content(object vocab.Type) string

func Id

func Id(object vocab.Type) *url.URL

func Name

func Name(object vocab.Type) string

func Published

func Published(object vocab.Type) (time.Time, error)

Try to get the "published" property from object. On error, return the zero value for time.Time and an error explaining what happened.

func SetIdOn

func SetIdOn(target vocab.Type, iri *url.URL)

Set the JSONLDId field on target to iri.

func ToCollection

func ToCollection(iris []*url.URL) vocab.ActivityStreamsCollection

Return a new collection that contains all elements in iris.

func ToPage

Return a new ordered collection page that contains all elements in iris.

func Type

func Type(obj vocab.Type) string

Types

type Appender

type Appender interface {
	AppendIRI(*url.URL)
}

Jump to

Keyboard shortcuts

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