# README
lessgo/httpsrv
lessgo/httpsrv is a Lightweight, Modular, High Performance MVC web framework.
Quick Start
Install httpsrv framework
go get -u github.com/lessos/lessgo/httpsrv
first hello world demo
package main
import (
"github.com/lessos/lessgo/httpsrv"
)
type Index struct {
*httpsrv.Controller
}
func (c Index) IndexAction() {
c.RenderString("hello world")
}
func main() {
// init one module
module := httpsrv.NewModule("default")
// register controller to module
module.ControllerRegister(new(Index))
// register module to httpsrv
httpsrv.GlobalService.ModuleRegister("/", module)
// listening on port 18080
httpsrv.GlobalService.Config.HttpPort = 18080
// start
httpsrv.GlobalService.Start()
}
# Functions
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
# Constants
No description provided by the author
No description provided by the author
# Variables
Filters is the default set of global filters.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
A single language from the Accept-Language HTTP header.
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
This object handles loading and parsing of templates.
No description provided by the author
# Type aliases
No description provided by the author