Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
fix: cannot unmarshal number into Go struct field ConvertListing.id o…
Browse files Browse the repository at this point in the history
…f type string
  • Loading branch information
alxshelepenok committed Aug 20, 2019
1 parent 6198319 commit 0c82e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/v1/coinmarketcap.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type MapListing struct {

// ConvertListing is the converted listing structure
type ConvertListing struct {
ID string `json:"id"`
ID int `json:"id"`
Name string `json:"name"`
Symbol string `json:"symbol"`
Amount float64 `json:"amount"`
Expand Down

0 comments on commit 0c82e2d

Please sign in to comment.