htmlj

package module
v0.0.0-...-c36dda5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

README

htmlj

A Go parser for HTML Journal documents. Pass an io.Reader to the Parse function to get a *Journal.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Published time.Time
	Title     string
	Content   string
}

type Journal

type Journal struct {
	Title   string
	Entries []Entry
	Updated time.Time
	Warn    bool
}

func Parse

func Parse(r io.Reader) (*Journal, error)

type ValidationError

type ValidationError struct {
	Msg string
}

func (ValidationError) Error

func (e ValidationError) Error() string

Jump to

Keyboard shortcuts

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