go mod tidy

pull/94/head
Miguel Mota 3 years ago
parent 296c67e6fd
commit 269b9ad5b7

@ -878,9 +878,9 @@ Frequently asked questions:
- A: Press <kbd>?</kbd> to toggle the help menu. Press <kbd>q</kbd> to close help menu.
- Q: I'm getting the error: `new gocui: termbox: error while reading terminfo data: EOF` when trying to run.
- Q: I'm getting the error: `new gocui: termbox: error while reading terminfo data: EOF` or the error `termbox: error while reading terminfo data: termbox: unsupported terminal` when trying to run.
- A: Try setting the environment variable `TERM=screen-256color`
- A: Try setting the environment variable `TERM=screen-256color` when starting cointop. E.g. `TERM=screen-256color cointop`
- Q: Does cointop work inside an emacs shell?

@ -156,6 +156,7 @@ type CryptocurrencyInfo struct {
type InfoOptions struct {
ID string
Symbol string
Slug string
}
// ListingOptions options
@ -272,6 +273,9 @@ func (s *CryptocurrencyService) Info(options *InfoOptions) (map[string]*Cryptocu
if options.Symbol != "" {
params = append(params, fmt.Sprintf("symbol=%s", options.Symbol))
}
if options.Slug != "" {
params = append(params, fmt.Sprintf("slug=%s", strings.ToLower(options.Slug)))
}
url := fmt.Sprintf("%s/cryptocurrency/info?%s", baseURL, strings.Join(params, "&"))

@ -30,7 +30,7 @@ github.com/mattn/go-colorable
github.com/mattn/go-isatty
# github.com/mattn/go-runewidth v0.0.9
github.com/mattn/go-runewidth
# github.com/miguelmota/go-coinmarketcap v0.1.6
# github.com/miguelmota/go-coinmarketcap v0.1.7
github.com/miguelmota/go-coinmarketcap/pro/v1
github.com/miguelmota/go-coinmarketcap/v2
github.com/miguelmota/go-coinmarketcap/v2/types

Loading…
Cancel
Save