article

package
v0.0.0-...-e9bb3ec Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArticleNotFound = errors.New("no articles found")

Functions

This section is empty.

Types

type Frontmatter

type Frontmatter struct {
	Title       string `yaml:"title"`
	Emoji       string `yaml:"emoji"`
	IsPublished bool   `yaml:"published"`
}

type Meta

type Meta struct {
	Slug        string
	Username    string
	Title       string
	Emoji       string
	IsPublished bool
}

Meta is a struct that contains the metadata of an article

func Load

func Load(dir string, username string) ([]Meta, error)

Jump to

Keyboard shortcuts

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