config

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) interface{}

func Save

func Save(cfg *Config) error

func Set

func Set(key, value string) error

Types

type Config

type Config struct {
	APIKey       string `mapstructure:"api_key"`
	Model        string `mapstructure:"model"`
	Theme        string `mapstructure:"theme"`
	ShowDiff     bool   `mapstructure:"show_diff"`
	AutoCopy     bool   `mapstructure:"auto_copy"`
	Mode         string `mapstructure:"mode"`
	Language     string `mapstructure:"language"`
	CacheEnabled bool   `mapstructure:"cache_enabled"`
	CacheTTLDays int    `mapstructure:"cache_ttl_days"`
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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