From 76d4f03cef27025544cb20ea876e53710ab759ff Mon Sep 17 00:00:00 2001 From: rocketlaunchr-cto Date: Wed, 11 Mar 2020 15:45:20 +1100 Subject: [PATCH] - add json struct tags --- search.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/search.go b/search.go index 8fa5a9c..a860a84 100644 --- a/search.go +++ b/search.go @@ -14,16 +14,16 @@ import ( type GoogleResult struct { // Rank is the order number of the search result. - Rank int + Rank int `json:"rank"` // URL of result. - URL string + URL string `json:"url"` // Title of result. - Title string + Title string `json:"title"` // Description of the result. - Description string + Description string `json:"description"` } // GoogleDomains represents localized Google homepages. The 2 letter country code is based on ISO 3166-1 alpha-2.