Just Myself Context for Martini.
Self
provides a [web.go][] compitable layer for reusing the code written with
hoisie's web.go
framework. Here compitable means we can use Self
the same
way as in hoisie's web.go
but not the others.
package main
import (
"github.com/insionng/self"
"log"
"os"
)
func main() {
l, e := os.Create("./self.Classico.log")
if e != nil {
log.Fatal(e.Error())
}
defer l.Close()
m := self.Classico(l)
m.Get("/", func(self *self.Context) {
self.WriteString("Hello , Hello , Hello , World!")
})
m.Run()
}