summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-20 00:08:09 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-20 00:08:09 +0200
commitf5fa190d6ce893d79345e179750293fd7d9c7f1c (patch)
treef26431e946ad6b2147501332dec520f596c8998a
parent52c84cc371fdd9bf63df3136afaa38628d0e21b6 (diff)
Revert widht/height, drop imagewidth/height/islogo
-rw-r--r--duck.go19
1 files 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