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, 2023 License: MIT 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"`
	Model  string `json:"model"`
}

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