Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct {
Organic []SearchResult `json:"organic"`
}
Response は Serper API のレスポンス構造
type SearchRequest ¶
type SearchRequest struct {
Q string `json:"q"`
Gl string `json:"gl,omitempty"` // 地域コード (optional)
Hl string `json:"hl,omitempty"` // 言語コード (optional)
}
SearchRequest は Serper API へのリクエスト構造
type SearchResult ¶
type SearchResult struct {
Title string `json:"title"`
Link string `json:"link"`
Snippet string `json:"snippet"`
}
SearchResult は検索結果の1件
Click to show internal directories.
Click to hide internal directories.