Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wengchaoxi/go-web-framework

一个轻量级的 Web 框架
https://github.com/wengchaoxi/go-web-framework

framework http

Last synced: 22 days ago
JSON representation

一个轻量级的 Web 框架

Awesome Lists containing this project

README

        

# go-web-framework

## Example

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