Skip to content
/ self Public

Self , 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.

License

Notifications You must be signed in to change notification settings

insionng/self

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Self

Just Myself Context for Martini.

Description

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.

Usage

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()
}

Authors

Links

About

Self , 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages