# regia **Repository Path**: eatmoreapple/regia ## Basic Information - **Project Name**: regia - **Description**: No description available - **Primary Language**: Go - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-10 - **Last Updated**: 2022-07-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # regia Regia is a web framework written with golang ! It is simple, helpful and with high performance. Build your own idea with it ! ## Installation Golang version 1.11 + required ```shell go get github.com/eatmoreapple/regia ``` ## Quick Start ```sh $ touch main.go # add all following codes into main.go ``` ```go package main import "github.com/eatmoreapple/regia" func main() { engine := regia.New() engine.GET("/string", func(context *regia.Context) { context.String("string") }) engine.POST("/json", func(context *regia.Context) { var body struct { Name string `json:"name"` Age uint8 `json:"age"` } context.BindJSON(&body) context.JSON(body) }) engine.Run(":8000") } ``` ```shell $ go run main.go # open your brower and visit `localhost:8000/` ```