Documentation ¶ Index ¶ func LoadTokens(profileName string, cacheDir string) (*ksef.Tokens, error) func SaveConfig(config Config, configPath string) error func SaveTokens(profileName string, tokens *ksef.Tokens, cacheDir string) error type Config func LoadConfig(configPath string) (Config, error) type Profile Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoadTokens ¶ func LoadTokens(profileName string, cacheDir string) (*ksef.Tokens, error) func SaveConfig ¶ func SaveConfig(config Config, configPath string) error func SaveTokens ¶ func SaveTokens(profileName string, tokens *ksef.Tokens, cacheDir string) error Types ¶ type Config ¶ type Config struct { CurrentProfile string `yaml:"currentProfile"` Profiles map[string]Profile `yaml:"profiles"` } func LoadConfig ¶ func LoadConfig(configPath string) (Config, error) type Profile ¶ type Profile struct { Nip string `yaml:"nip"` Api string `yaml:"api"` Name string `yaml:"name"` } Source Files ¶ View all Source files profile.go Click to show internal directories. Click to hide internal directories.