Browse Source

Add a comment to explain temporary storage as RawMessage objects

pull/158/head
Richard Lewis 8 years ago
parent
commit
808bc2f3ad
  1. 2
      src/github.com/matrix-org/go-neb/services/imgur/imgur.go

2
src/github.com/matrix-org/go-neb/services/imgur/imgur.go

@ -88,7 +88,7 @@ type imgurGalleryAlbum struct {
} }
type imgurSearchResponse struct { type imgurSearchResponse struct {
Data []json.RawMessage `json:"data"`
Data []json.RawMessage `json:"data"` // Data temporarily stored as RawMessage objects, as it can contain a mix of imgurGalleryImage and imgurGalleryAlbum objects
Success *bool `json:"success"` // Request completed successfully Success *bool `json:"success"` // Request completed successfully
Status int `json:"status"` // HTTP response code Status int `json:"status"` // HTTP response code
} }

Loading…
Cancel
Save