config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	APIURL   string `json:"api_url"`
	APIToken string `json:"api_token"`
	Model    string `json:"model"`
	Theme    string `json:"theme"`
}

func DefaultConfig

func DefaultConfig() *AppConfig

type Manager

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

func NewManager

func NewManager() (*Manager, error)

func (*Manager) ConfigExists

func (m *Manager) ConfigExists() bool

func (*Manager) Get

func (m *Manager) Get() AppConfig

func (*Manager) Load

func (m *Manager) Load() error

func (*Manager) Save

func (m *Manager) Save() error

func (*Manager) Update

func (m *Manager) Update(fn func(*AppConfig)) error

Jump to

Keyboard shortcuts

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