Skip to content
/ moke Public

Moke is a HTTP web framework written in Go (Golang). It features a use trie-tree parse dynamic route.

License

Notifications You must be signed in to change notification settings

l1ch40/moke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moke Web Framework

Moke is a HTTP web framework written in Go (Golang). It features a use trie-tree parse dynamic route.

Quick start

package main

import (
	"moke"
	"net/http"
)

func main() {
	r := moke.Default()
	r.GET("/", func(c *moke.Context) {
		c.String(http.StatusOK, "Hello Moke\n")
	})
	r.GET("/hello/:name", func(c *moke.Context) {
		c.JSON(http.StatusOK, moke.H{"message": fmt.Sprintf("Hello %s", c.Param("name"))})
	})
	r.Run(":9999")
}

A

About

Moke is a HTTP web framework written in Go (Golang). It features a use trie-tree parse dynamic route.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages