parser

package
v0.0.0-...-b4bd3ec Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YEAR int = iota
	MONTH
	DATE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedAt

type CreatedAt struct {
	Year  string
	Month string
	Date  string
}
type Header struct {
	Title  string
	Date   CreatedAt
	Tags   []string
	Id     string
	Public bool
}

type Post

type Post struct {
	Header Header
	Body   []byte
}

func ParseMarkdown

func ParseMarkdown(markdown []byte) *Post

Jump to

Keyboard shortcuts

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