lib

package
v0.0.0-...-79c964f Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Title    string            `json:"title"`
	Body     string            `json:"body"`
	Id       string            `json:"id"`
	Author   string            `json:"author"`
	Time     time.Time         `json:"time"`
	Metadata map[string]string `json:"metadata"`
}

func FormatEntry

func FormatEntry(entry Entry) Entry

func NewBasicEntry

func NewBasicEntry(content string, author string) Entry

func RemoveEntryById

func RemoveEntryById(entries []Entry, id string) []Entry

type Prosefile

type Prosefile struct {
	Filetype string  `json:"filetype"`
	Version  string  `json:"version"`
	Entries  []Entry `json:"entries"`
}

func Format

func Format(prosefile Prosefile) (outfile Prosefile, err error)

TODO: Prob should be a pointer

Jump to

Keyboard shortcuts

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