config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeLocal  = "local"
	ModeGitHub = "github"
)

Variables

This section is empty.

Functions

func DefaultDataFile

func DefaultDataFile() (string, error)

Types

type AppConfig

type AppConfig struct {
	StorageMode string `json:"storage_mode"`
	Repo        string `json:"repo,omitempty"`
	DataFile    string `json:"data_file"`
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() (*Manager, error)

func (*Manager) Load

func (m *Manager) Load() (AppConfig, bool, error)

func (*Manager) Path

func (m *Manager) Path() string

func (*Manager) Save

func (m *Manager) Save(cfg AppConfig) error

Jump to

Keyboard shortcuts

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