config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pager   string `yaml:"pager,omitempty"`
	NoCache bool   `yaml:"no-cache,omitempty"`
	Feeds   []Feed `yaml:"feeds"`
	// contains filtered or unexported fields
}

func New

func New(configPath string, pager string, noCache bool) (Config, error)

func (*Config) AddFeed

func (c *Config) AddFeed(feed Feed) error

func (*Config) Load

func (c *Config) Load() error

func (*Config) Write

func (c *Config) Write() error

Write writes to a config file

type Feed

type Feed struct {
	URL string `yaml:"url"`
}

Jump to

Keyboard shortcuts

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