Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ExpandPath ¶
ExpandPath expands the tilde (~) in a path to the user's home directory.
func WriteConfig ¶
WriteConfig writes the configuration atomically to the default path.
Types ¶
type Config ¶
type Config struct {
ServerURL string `json:"server_url"`
Token string `json:"token"`
Username string `json:"username"`
Password string `json:"password"`
Timeout int `json:"timeout"`
}
Config represents the application configuration.
func ReadConfig ¶
ReadConfig reads the configuration from the default path, overriding with environment variables.
Click to show internal directories.
Click to hide internal directories.