Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 框架
- Host: GitHub
- URL: https://github.com/wengchaoxi/go-web-framework
- Owner: wengchaoxi
- Created: 2022-02-24T07:39:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T08:44:09.000Z (over 2 years ago)
- Last Synced: 2024-06-21T08:31:01.479Z (5 months ago)
- Topics: framework, http
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-web-framework
## Example
```go
package mainimport (
"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()
}
```