Documentation ¶ Index ¶ type Config func DefaultConfig() *Config func NewConfig() (*Config, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { OpenaiApiKey string `mapstructure:"openai_api_key"` } func DefaultConfig ¶ func DefaultConfig() *Config DefaultConfig - Creates default config. func NewConfig ¶ func NewConfig() (*Config, error) NewConfig initializes and returns a new Config object by reading and unmarshalling the configuration file from the given path. It falls back to the DefaultConfig if the file is not found. If there's an error during the process, it returns the error. Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.