config

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(c *Config) error

Identical save function except that it takes the config object as its argument

Types

type Config

type Config struct {
	APIKey    string `json:"api_key"`
	Org       string `json:"org_id"`
	Model     string `json:"model"`
	GHToken   string `json:"gh_token"`
	Signature string `json:"signature"`
	UserColor string `json:"user_color"`
	OttoColor string `json:"otto_color"`
}

Config represents the configuration file

func Load

func Load() (*Config, error)

Load loads the configuration file

func (*Config) Save

func (c *Config) Save() error

Save saves the configuration file

Jump to

Keyboard shortcuts

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