blogposts

package
v0.0.0-...-a204e96 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 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 Post

type Post struct {
	Title       string
	Description string
	Tags        []string
	Body        string
}

Post represents a post on a blog

func NewPostsFromFS

func NewPostsFromFS(fileSystem fs.FS) ([]Post, error)

NewPostsFromFS returns a collection of blog posts from a file system. If it does not conform to the format then it'll return an error

Jump to

Keyboard shortcuts

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