Skip to content

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

License

Notifications You must be signed in to change notification settings

insionng/selfor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Selfor

Just Myself Context for Marcaron.

Description

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.

Usage

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

Authors

Links

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages