config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: BSD-3-Clause Imports: 2 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 {
	Directories []string `toml:"directories"`

	Backup string `toml:"backup"`

	Metadata struct {
		Names struct {
			Monday    string `toml:"monday"`
			Tuesday   string `toml:"tuesday"`
			Wednesday string `toml:"wednesday"`
			Thursday  string `toml:"thursday"`
			Friday    string `toml:"friday"`
			Saturday  string `toml:"saturday"`
			Sunday    string `toml:"sunday"`
		} `toml:"names"`

		Pictures struct {
			Monday    string `toml:"monday"`
			Tuesday   string `toml:"tuesday"`
			Wednesday string `toml:"wednesday"`
			Thursday  string `toml:"thursday"`
			Friday    string `toml:"friday"`
			Saturday  string `toml:"saturday"`
			Sunday    string `toml:"sunday"`
		} `toml:"pictures"`
	} `toml:"metadata"`

	GitHub struct {
		Token string `toml:"token"`

		Repo struct {
			Owner  string `toml:"owner"`
			Name   string `toml:"name"`
			Branch string `toml:"branch"`
		} `toml:"repo"`

		Committer struct {
			Name  string `toml:"name"`
			Email string `toml:"email"`
		} `toml:"committer"`
	} `toml:"github"`

	Mixcloud struct {
		Token string `toml:"token"`
	} `toml:"mixcloud"`
}

func Load

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

Jump to

Keyboard shortcuts

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