pages

package
v0.0.0-...-87c4e11 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	ID    int      `json:"id"`
	Title string   `json:"title"`
	MD    []byte   `json:"md"`
	Tags  []string `json:"tags"`
	JSON  []byte
	HTML  []byte
}

func New

func New(escapedTitle string, db *database.DB) (page *Page, err error)

func (*Page) Create

func (p *Page) Create(db *database.DB) error

func (*Page) Escape

func (p *Page) Escape() string

func (*Page) Load

func (p *Page) Load(db *database.DB) error

func (*Page) MdToHtml

func (p *Page) MdToHtml()

func (*Page) Unescape

func (p *Page) Unescape(escapedTitle string) (title string, err error)

Jump to

Keyboard shortcuts

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