This package provides a simple way to access the Stack Exchange API.
This example fetches a list of recent questions on Stack Overflow and displays their titles:
package main
import (
"log"
"fmt"
"github.com/nathan-osman/go-seapi"
)
func main() {
v, err := seapi.NewRequest("/questions").Site("stackoverflow").Do()
if err != nil {
log.Fatal(err)
}
for _, i := range v.List("items") {
fmt.Println(i.String("title"))
}
}