Skip to content

a small web server framework, used gorilla mux

Notifications You must be signed in to change notification settings

ycyxuehan/bingo

Repository files navigation

bingo

bingo is a little web service framework and used gorilla mux router.

  • example
package main

import (
	"github.com/ycyxuehan/bingo"
)

//
type TestController struct {
	bingo.Controller
}

func (t *TestController)Get(){
	t.Ctx.ServeString("this is a test")
}

func main(){
	router := bingp.NewRouter()
	router.Add("/", &TestController{})
	b := bingo.New("bingo.conf")
	b.Run(router)
}

config file

    host=0.0.0.0
    port=8080

About

a small web server framework, used gorilla mux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages