page

package
v0.0.0-...-873507f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: GPL-2.0, GPL-2.0-only Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Title    string    `json:"title"`
	Tags     []string  `json:"tags"`
	Modified time.Time `json:"modified"`
}

Metadata contains the metadata for the page

type Page

type Page struct {
	Contents string   `json:"contents"`
	Metadata Metadata `json:"metadata"`
}

Page represents a single wiki page

func New

func New() *Page

New generates a new empty page instance

Jump to

Keyboard shortcuts

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