Skip to main content
1 of 4
laktek
  • 111
  • 2

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

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

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

You will find bunch of examples included with the source code.

https://github.com/laktek/Stack-on-Go/tree/master/examples

###License

MIT License

###Download

https://github.com/laktek/Stack-on-Go/downloads

###Source https://github.com/laktek/stack-on-go

###Platform

Currently, targeted for Go runtime release r.60.3, which is supported by Google AppEngine.

##Contact

Lakshan Perera - http://laktek.com

Please report all issues and suggestions in GitHub Issues

laktek
  • 111
  • 2