package main
import (
"net/http"
"github.com/WengChaoxi/go-web-framework/framework"
)
func main() {
core := framework.NewCore()
core.Get("/", func(c *framework.Context) error {
c.Json(200, "h3110 w0r1d")
return nil
})
server := &http.Server{
Handler: core,
Addr: ":8080",
}
server.ListenAndServe()
}
-
Notifications
You must be signed in to change notification settings - Fork 0
wengchaoxi/go-web-framework
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|