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