jonwho / go-iex

IEX Cloud API client in Go
MIT License
6 stars 3 forks source link

typed parameters #13

Closed jonwho closed 4 years ago

jonwho commented 4 years ago

accepting parameters as an interface feels clunky

define parameters struct per request

type BatchRequestParams struct {
    Types string `url:"types,omitempty"`
    Range string `url:"range,omitempty"
    Last int `url:"last,omitempty"
}