lib

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Action *log.Logger
	Warn   *log.Logger
	Info   *log.Logger
	Error  *log.Logger
	Fatal  *log.Logger
)

Functions

func ParseArguments

func ParseArguments(arguments []string) (map[string]*string, error)

Types

type Article

type Article struct {
	Id            int
	Guid          string
	Title         string
	Filename      string
	Description   string
	DatePublished time.Time

	// optional
	Topic string
}

type Config

type Config struct {
	Description string
	InputFolder string
	Author      string
	Link        string

	// optional (one is required)
	OutputFolder string
	OutputFile   string
}

func ReadConfig

func ReadConfig(filePath string) (Config, error)

type Feed

type Feed struct {
	Articles []Article
	// contains filtered or unexported fields
}

func (*Feed) FromConfig

func (feed *Feed) FromConfig(config Config) error

func (*Feed) ToXML

func (feed *Feed) ToXML() error

Jump to

Keyboard shortcuts

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