Skip to content

Commit

Permalink
Remove tabs from the examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedyalko Dyakov committed Mar 3, 2015
1 parent d4969b7 commit e78dcd0
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,32 @@
//
// Example:
//
// package main
//
// import (
// "fmt"
// "net/http"
//
// "github.com/zenazn/goji"
// "github.com/zenazn/goji/web"
// "github.com/ndyakov/whatever"
// "github.com/ndyakov/gojison"
// )
//
// func main() {
// goji.Use(gojison.Request)
// goji.Use(gojison.Response)
// goji.Post("/save", handleSave)
// goji.Serve()
// }
//
// func handleSave(c web.C, w http.ResponseWriter, r *http.Request) {
// params := c.Env["Params"].(whatever.Params)
// if err := params.Required("user.name", "user.email"); err != nil {
// gojison.Error(err, 0)
// return
// }
// // do something...
// gojison.Success("saved", 0)
// }
// package main
//
// import (
// "fmt"
// "net/http"
//
// "github.com/zenazn/goji"
// "github.com/zenazn/goji/web"
// "github.com/ndyakov/whatever"
// "github.com/ndyakov/gojison"
// )
//
// func main() {
// goji.Use(gojison.Request)
// goji.Use(gojison.Response)
// goji.Post("/save", handleSave)
// goji.Serve()
// }
//
// func handleSave(c web.C, w http.ResponseWriter, r *http.Request) {
// params := c.Env["Params"].(whatever.Params)
// if err := params.Required("user.name", "user.email"); err != nil {
// gojison.Error(err, 0)
// return
// }
// // do something...
// gojison.Success("saved", 0)
// }
package gojison

0 comments on commit e78dcd0

Please sign in to comment.