config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 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 {
	Github    Github    `mapstructure:"github"`
	Shortcuts Shortcuts `mapstructure:"keys"`
	Settings  Settings  `mapstructure:"settings"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type Github

type Github struct {
	Token string `mapstructure:"token"`
}

type Settings

type Settings struct {
	LiveMode struct {
		Enabled  bool          `mapstructure:"enabled"`
		Interval time.Duration `mapstructure:"interval"`
	} `mapstructure:"live_mode"`
}

type Shortcuts

type Shortcuts struct {
	SwitchTabRight string `mapstructure:"switch_tab_right"`
	SwitchTabLeft  string `mapstructure:"switch_tab_left"`
	Quit           string `mapstructure:"quit"`
	Refresh        string `mapstructure:"refresh"`
	Enter          string `mapstructure:"enter"`
	LiveMode       string `mapstructure:"live_mode"`
	Tab            string `mapstructure:"tab"`
}

Jump to

Keyboard shortcuts

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