~mendelmaleh/xkcd

24696ead7e3332258f4587a262767d5bad82fa34 — Mendel E 2 years ago ed73e79 master
Add struct tags to Comic
1 files changed, 9 insertions(+), 9 deletions(-)

M xkcd.go
M xkcd.go => xkcd.go +9 -9
@@ 20,15 20,15 @@ type XKCD struct {

// Comic from xkcd
type Comic struct {
	Time       time.Time
	Num        int
	Link       string
	Img        string
	Title      string
	SafeTitle  string
	Alt        string
	Transcript string
	News       string
	Time       time.Time `json:"time"`
	Num        int       `json:"num"`
	Link       string    `json:"link"`
	Img        string    `json:"img"`
	Title      string    `json:"title"`
	SafeTitle  string    `json:"safe_title"`
	Alt        string    `json:"alt"`
	Transcript string    `json:"transcript"`
	News       string    `json:"news"`
}

// APIResponse from xkcd