Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultProvider

func GetDefaultProvider() string

GetDefaultProvider returns the default provider

func Save

func Save(cfg *Config) error

Save writes configuration to disk

func SetDefaultProvider

func SetDefaultProvider(provider string) error

SetDefaultProvider updates the default provider

Types

type Config

type Config struct {
	DefaultProvider string            `json:"default_provider"`
	Keys            map[string]string `json:"keys"`
}

func Load

func Load() (*Config, error)

Load reads configuration from disk

Jump to

Keyboard shortcuts

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