https://github.com/gwaylib/eweb
go router for web
https://github.com/gwaylib/eweb
goweb route router web
Last synced: 5 months ago
JSON representation
go router for web
- Host: GitHub
- URL: https://github.com/gwaylib/eweb
- Owner: gwaylib
- Created: 2018-04-26T07:09:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2026-01-17T03:47:37.000Z (5 months ago)
- Last Synced: 2026-01-17T15:34:45.867Z (5 months ago)
- Topics: goweb, route, router, web
- Language: Go
- Size: 1.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fork and modify from:
```
https://github.com/ot24net/eweb
https://github.com/labstack/echo
```
Changes:
```
* Make up global route of echo.Echo
* Make up log output and add H reference gin, it is really good.
* Be careful! We use text/template instead the html/template
* Some new features, such as quic
```
Why base on echo?
```
* I like the return design in routing. It can make the compilation more reassuring. When return is missing, it will prompt compilation errors.
* I need to replace some features, it make me easy to changed it.
* These are the easiest to substitute when I tried to use them many years ago.
```
Static File Support
```
eweb.Static("/", "./public") // echo supported
// os file support
fs, err := os.Open("./public")
if err != nil{
panic(err)
}
eweb.StaticFS("/", http.FS(fs))
// embed file support
// fs equal embed.FS
eweb.StaticFS("/", http.FS(fs))
```