config

package
v0.0.0-...-fed690a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYSTEM_CONFIG_PATH string = "/etc/confman.conf"
	HOME_CONFIG_PATH   string = ".config/confman.conf"
)

Variables

This section is empty.

Functions

func GetConfigFile

func GetConfigFile() (string, error)

Types

type Config

type Config struct {
	Paths map[string]string
}

func GetConfigFrom

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

func NewConfig

func NewConfig() *Config

func (*Config) AddPath

func (c *Config) AddPath(source, name string) error

func (*Config) RemovePath

func (c *Config) RemovePath(source string) error

func (*Config) Save

func (c *Config) Save() error

Jump to

Keyboard shortcuts

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