Documentation
¶
Index ¶
Constants ¶
View Source
const (
GoldPriceOrgBaseURL = "https://data-asg.goldprice.org/dbXRates"
)
Variables ¶
View Source
var (
PreferredCurrency = "USD"
)
Functions ¶
This section is empty.
Types ¶
type GoldPriceClient ¶
func NewHTTPGoldPriceClient ¶
func NewHTTPGoldPriceClient(baseURL string, client *http.Client, currency string) GoldPriceClient
type GoldPrices ¶
type GoldPrices struct {
Prices []GoldPrice `json:"items"`
}
type HTTPGoldPriceClient ¶
type HTTPGoldPriceClient struct {
GoldPriceClient
// contains filtered or unexported fields
}
func (*HTTPGoldPriceClient) Get ¶
func (g *HTTPGoldPriceClient) Get() (*GoldPrice, error)
Click to show internal directories.
Click to hide internal directories.