update

package
v0.0.0-...-7fd7830 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

func GetUpdatedBlips

func GetUpdatedBlips(fsys rwfs.FS, section string, buffer int) (<-chan *Result[Blip], error)

Types

type Blip

type Blip struct {
	Page         *pageparser.ContentFrontMatter
	Filename     string
	RelPermalink string
}

func (*Blip) WriteFile

func (blip *Blip) WriteFile(fsys rwfs.FS) error

type RadarTemplate

type RadarTemplate struct {
	Blips  []*Blip
	Radius int
	Size   int
}

type Result

type Result[T any] struct {
	Error error
	Value *T
}

type Settings

type Settings struct {
	SectionFS        rwfs.FS
	OutputFilename   string
	SectionName      string
	TemplateFilename string
	TemplateData     RadarTemplate
}

Jump to

Keyboard shortcuts

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