config

package
v0.0.0-...-2533672 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Root       string `toml:"root"`
	Editor     string `toml:"editor"`
	Finder     string `toml:"finder"`
	FinderOpts string `toml:"finderOpts"`
	Chooser    string `toml:"chooser"`
}

type Config

type Config struct {
	Common Common `toml:"common"`
	Daily  Daily  `toml:"daily"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) DailyFilePath

func (c *Config) DailyFilePath(dirPath string, fpath string) string

func (*Config) DailyPath

func (c *Config) DailyPath() string

func (*Config) DailyTemplatePath

func (c *Config) DailyTemplatePath() string

type Daily

type Daily struct {
	Path         string `toml:"path"`
	TemplatePath string `toml:"template"`
}

Jump to

Keyboard shortcuts

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