Skip to content

nathan-osman/go-seapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-seapi

GoDoc MIT License

This package provides a simple way to access the Stack Exchange API.

Example

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"))
    }
}

About

Stack Exchange API client for Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages