- add json struct tags
This commit is contained in:
parent
007d055ab5
commit
76d4f03cef
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user