config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigDir

func DefaultConfigDir() string

DefaultConfigDir returns $HOME/.config/aimon

func DefaultConfigPath

func DefaultConfigPath() string

DefaultConfigPath returns the default configuration file path ($HOME/.config/aimon/config.json)

Types

type Config

type Config struct {
	Audio *audio.Config `json:"audio"`
}

func Load

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

Load reads and parses the configuration file. If no path is supplied, or if the provided path doesn't exist and there isn't a config in the default path, write one.

func (*Config) OK

func (c *Config) OK() error

Jump to

Keyboard shortcuts

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