Stack on Go - A wrapper library in Go
#Stack on Go - A wrapper library in Go https://github.com/laktek/Stack-on-Go
##Sample Code
Sample Code
session := stackongo.NewSession("stackoverflow")
//set the params
params := make(stackongo.Params)
params.Add("filter", "total")
params.Pagesize(100)
params.AddVectorized("tagged", []string("go", "ruby", "java"))
questions, err := session.AllQuestions(params)
//iterate through results
for _, question := range questions.Items {
fmt.Printf("%v\n", question.Title)
fmt.Printf("Asked By: %v on %v\n", question.Owner.Display_name, time.SecondsToUTC(question.Creation_date))
fmt.Printf("Link: %v\n\n", question.Link)
}
For more details check this Blog Post.
##About
About
Stack on Go is a wrapper library written in Golang for Stack Exchange API 2.0. It's compatible with Google AppEngine's Go runtime, allowing you to easily deploy your apps.
Stack on Go fully implements the Stack Exchange API 2.0 and there's test coverage for all methods (you can use the test cases as a guideline on how to call the methods).
This library (combined with Google AppEngine) could be a good platform for those who want to hack on a hobby project to learn Go.
###Examples
Examples
You will find bunch of examples included with the source code.
https://github.com/laktek/Stack-on-Go/tree/master/examples
###License
License
MIT License
###Download
Download
https://github.com/laktek/Stack-on-Go/downloads
Source
###Source https://github.com/laktek/Stack-on-Go
###Platform
Platform
Stack on Go is compatible with Go1.
##Contact
Contact
Lakshan Perera - http://laktek.com
Please report all issues and suggestions in GitHub Issues