internal

package
v0.0.0-...-cf4002c Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: EUPL-1.2 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, fatal bool)

Check if error occurred, then log & exit

func Clean

func Clean()

Clean all volatile files

func Config

func Config() *model.Config

Config loads and returns single verified config instance

func CopyFile

func CopyFile(src string, dst string) error

CopyFile copies a file from src to dst

func Entries

func Entries() (model.Links, error)

Entries returns all written entries as links

func EntryFiles

func EntryFiles() ([]os.FileInfo, error)

EntryFiles returns a list of files containing valid blog entries

func EntryMetadata

func EntryMetadata(file *os.File, scanner *bufio.Scanner) map[string]string

func FilteredEntries

func FilteredEntries(filter string) (model.Links, error)

FilteredEntries returns entries based on filter string as links

func GetFiles

func GetFiles(file os.FileInfo, path string) ([]string, error)

GetFiles returns filenames recursively

func GetFooter

func GetFooter() model.Footer

GetFooter fills data transfer vars

func GetHeader

func GetHeader() model.Header

GetHeader fills data transfer vars

func Init

func Init()

Init static dir to serve

func Serve

func Serve()

Serve static dir at configured port

func Update

func Update(force bool)

Update static files from data dir

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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