From f5fa190d6ce893d79345e179750293fd7d9c7f1c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 20 Jul 2015 00:08:09 +0200 Subject: Revert widht/height, drop imagewidth/height/islogo --- duck.go | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/duck.go b/duck.go index 95067ae..5dfc5f4 100644 --- a/duck.go +++ b/duck.go @@ -11,14 +11,11 @@ import ( const baseURL = "https://api.duckduckgo.com/" type Answer struct { - Abstract string // topic summary (can contain HTML, e.g. italics) - AbstractText string // topic summary (with no HTML) - AbstractSource string // name of Abstract source - AbstractURL string // deep link to expanded topic page in AbstractSource - Image string // link to image that goes with Abstract - ImageWidth int - ImageHeight int - ImageIsLogo int + Abstract string // topic summary (can contain HTML, e.g. italics) + AbstractText string // topic summary (with no HTML) + AbstractSource string // name of Abstract source + AbstractURL string // deep link to expanded topic page in AbstractSource + Image string // link to image that goes with Abstract Heading string // name of topic that goes with Abstract Answer string // instant answer AnswerType string // type of Answer, e.g. calc, color, digest, info, ip, iploc, phone, pw, rand, regexp, unicode, upc, or zip @@ -40,9 +37,9 @@ type Result struct { } type Icon struct { - URL string // URL of icon - Height interface{} // height of icon (px) - Width interface{} // width of icon (px) + URL string // URL of icon + Height int // height of icon (px) + Width int // width of icon (px) } type queryFlags int -- cgit v1.2.3