package config type Fonnte struct { ApiUrl string `mapstructure:"api_url"` Token string `mapstructure:"token"` Timeout int `mapstructure:"timeout"` } func (f *Fonnte) GetApiUrl() string { return f.ApiUrl } func (f *Fonnte) GetToken() string { return f.Token } func (f *Fonnte) GetTimeout() int { return f.Timeout }