page

package
v0.0.0-...-a2a747e Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2016 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Overview

package to represent a page to render

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Structure

type Structure struct {
	Title string
	Body  []byte
}

declaration of Page structure

func Load

func Load(title string) (*Structure, error)

load a current file into a Page structure

func (*Structure) Save

func (p *Structure) Save() error

save a Page in /data/p.Title+".txt" with content of p.Body

Jump to

Keyboard shortcuts

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