package
Version:
v0.0.0-...-4ca6365
Opens a new window with list of versions in this module.
Published: Jun 17, 2022
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Handles HTTP requests logic
Create a new Client object
Retry mechanism for HTTP requests
type CoinList struct {
Coins []struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
}
}
type CoinPrice struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
MarketData struct {
CurrentPrice struct {
EUR float64 `json:"eur"`
USD float64 `json:"usd"`
} `json:"current_price"`
} `json:"market_data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.