module
0.0.0-20240515195449-361d07b9e227
Repository: https://github.com/jchavannes/jgo.git
Documentation: pkg.go.dev
# README
JGo Web
Overview
- Simple routing
- Automatic template rendering based on request path
- Response object with support for common functionality, e.g.:
- Getting form and header data
- Redirects
- Sessions with validatable tokens
- Enforceable CSRF tokens
- WebSockets
- Example app with:
- User accounts
- Shared HTML templates (e.g. header)
- SQLite database
- Chatroom
Docs
https://godoc.org/github.com/jchavannes/jgo
Example
package main
import (
"github.com/jchavannes/jgo/web"
)
func main() {
server := web.Server{
Port: 80,
Routes: []web.Route{{
Pattern: "/hello",
Handler: func(r *web.Response) {
r.Write("world")
},
}},
}
server.Run()
}
License
See the LICENSE file for license rights and limitations (MIT).
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Web abstracts http request and response handling.