Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vocabulary ¶
Vocabulary represents a vocabulary of terms.
func NewVocabulary ¶
func NewVocabulary(terms []Term, baseURL url.URL) *Vocabulary
NewVocabulary creates a new Vocabulary instance.
func (*Vocabulary) RenderJSONLD ¶
func (v *Vocabulary) RenderJSONLD() ([]byte, error)
RenderJSONLD renders the terms as a JSON-LD document.
func (*Vocabulary) RenderWebpage ¶
func (v *Vocabulary) RenderWebpage() ([]byte, error)
RenderWebpage renders the terms as a webpage using the embedded template.
Click to show internal directories.
Click to hide internal directories.