config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFileName = "config"
)

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() (string, error)

GetConfigDir returns the config directory path (~/.oops/)

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the config file path

Types

type Config

type Config struct {
	DefaultGlobal bool // Use global storage by default
}

Config represents oops configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns default configuration

func Load

func Load() (*Config, error)

Load reads configuration from ~/.oops/config

func (*Config) Save

func (c *Config) Save() error

Save writes configuration to ~/.oops/config

Jump to

Keyboard shortcuts

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