Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAPIURL = "http://localhost:39867" DefaultOutputFormat = "json" )
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
SaveConfig saves configuration to a specific file path
func UpdateConfig ¶
UpdateConfig updates specific fields in an existing config file
Types ¶
type Config ¶
type Config struct {
APIURL string `mapstructure:"api_url"`
OutputFormat string `mapstructure:"output_format"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a Config with default values
func LoadConfig ¶
LoadConfig loads configuration from a specific file path
func LoadFromEnv ¶
func LoadFromEnv() *Config
LoadFromEnv loads configuration from environment variables
Click to show internal directories.
Click to hide internal directories.