conf

package
v1.2.3-beta Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	JournalsFolder  string          `yaml:"journalsfolder"`
	Pages           map[string]bool `yaml:"pages"`
	CheckForUpdates bool            `yaml:"checkforupdates"`
	Loglevel        string          `json:"loglevel" yaml:"loglevel"`
}

Conf is the app config

func LoadOrCreateConf

func LoadOrCreateConf(confPath string) Conf

LoadOrCreateConf loads the config from the given path, or creates a default one if missing.

func (Conf) ExpandJournalFolderPath

func (c Conf) ExpandJournalFolderPath() string

ExpandJournalFolderPath expands any env variables in the journal folder path.

Jump to

Keyboard shortcuts

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