Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyField = errors.New("at least one field is empty")
View Source
var ErrHTTPNon200 = errors.New("http status code isn't 200")
View Source
var ErrImgLoadNon200 = errors.New("image download failed, non 200 response code")
View Source
var ErrReadingBytes = errors.New("reading image bytes failed")
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { ImageURL string `json:"imageUrl"` Now ResultValueText `json:"now"` PreviousClose ResultValueText `json:"previousClose"` OneWeekAgo ResultValueText `json:"oneWeekAgo"` OneMonthAgo ResultValueText `json:"oneMonthAgo"` OneYearAgo ResultValueText `json:"oneYearAgo"` LastUpdateDate time.Time `json:"lastUpdateDate"` }
func (*Result) GetImageBytes ¶ added in v1.1.0
GetImageBytes gets image in bytes.
type ResultValueText ¶
Click to show internal directories.
Click to hide internal directories.