config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAPIKey

func DeleteAPIKey() error

func IsLoggedIn

func IsLoggedIn() bool

func LoadAPIKey

func LoadAPIKey() (string, error)

func SaveAPIKey

func SaveAPIKey(key string) error

func SaveConfig

func SaveConfig(cfg *Config) error

Types

type Config

type Config struct {
	FirstLogin bool   `json:"first_login"`
	Plan       string `json:"plan"`
	PlanLabel  string `json:"plan_label"`
}

Config holds persisted non-secret settings

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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