models

package
v0.0.0-...-3e7db52 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPost = errors.New("models: no matching post found")

Functions

This section is empty.

Types

type Post

type Post struct {
	ID        string
	Title     string
	Author    string
	Content   string
	Published time.Time
}

type PostModel

type PostModel struct {
	Dir fs.FS
}

func (*PostModel) All

func (m *PostModel) All() ([]*Post, error)

func (*PostModel) Get

func (m *PostModel) Get(id string) (*Post, error)

Jump to

Keyboard shortcuts

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