app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(params Params) (App, error)

func (*App) Build

func (app *App) Build() (Posts, error)

func (*App) ResolveRelativePath

func (app *App) ResolveRelativePath(path string) string

type Params

type Params struct {
	Log      *slog.Logger
	Verbose  bool
	RootPath string
	Prod     bool
}

type Post

type Post struct {
	Id           PostId
	FilePath     string
	HtmlFilePath string
	CreatedAt    time.Time
	UpdatedAt    time.Time
	Title        template.HTML
	Description  template.HTML
}

type PostId

type PostId string

type Posts

type Posts = map[PostId]*Post

Jump to

Keyboard shortcuts

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