Discover Packages
github.com/jivesearch/jivesearch
instant
stackoverflow
package
Version:
v0.0.0-...-c5d5a31
Opens a new window with list of versions in this module.
Published: Nov 21, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package stackoverflow fetches stackoverflow data
API retrieves information from the Stack Overflow API
Fetch retrieves a Stack Overflow response
type Answer struct {
Owner `json:"owner"`
Score int `json:"score"`
Body string `json:"body"`
}
Answer is a single answer
Fetcher retrieves a StackOverflowResponse
type Item struct {
Answers []Answer `json:"answers"`
Link string `json:"link"`
Title string `json:"title"`
}
Item is a question with answers, a link, and a title
type Owner struct {
DisplayName string `json:"display_name"`
}
Owner is the person who answered the question
TODO: I wasn't able to get both the User's display name and link to their profile or id.
Can select one or the other but not both in their filter.
type Response struct {
Items []Item `json:"items"`
QuotaMax int `json:"quota_max"`
QuotaRemaining int `json:"quota_remaining"`
}
Response is the raw response from Stack Overflow
Source Files
¶
Click to show internal directories.
Click to hide internal directories.