feat: add icon to OpenSearch Description XML
1 file changed, 8 insertions(+), 0 deletions(-)
changed files
M internal/opensearch/opensearch.go → internal/opensearch/opensearch.go
@@ -11,6 +11,7 @@ XMLName xml.Name `xml:"http://a9.com/-/spec/opensearch/1.1/ OpenSearchDescription"` Description string LongName string ShortName string + Image Image SearchForm *config.URL `xml:"http://www.mozilla.org/2006/browser/search/ SearchForm"` URL URL `xml:"Url"` }@@ -20,3 +21,10 @@ Method string `xml:"method,attr"` Template *config.URL `xml:"template,attr"` Type string `xml:"type,attr"` } + +type Image struct { + Height uint `xml:"height,attr"` + Width uint `xml:"width,attr"` + Type string `xml:"type,attr"` + Content string +}