프로젝트
GitHub에서 보기
dinever/golf
소개
:golf: The Golf web framework
웹 및 앱 개발What you can do
- No allocation during routing and parameter retrieve.
- Dead simple template inheritance with extends and include helper comes out of box. layout.html <h1>Hello World</h1> {{ template "body" }} {{ include "sidebar.html" }} index.html {{ extends "layout.html" }} {{ define "body"}} <p>Main content</p> {{ end }} sidebar.html <p>Sidebar content</p>
- Built-in XSRF and Session support.
- Powerful middleware chain.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalA fast, simple and lightweight micro-web framework for Go, comes with powerful features and has no dependencies other than the Go Standard Library.
Homepage: golf.readme.io
Installation
go get github.com/dinever/golf
Features
No allocation during routing and parameter retrieve.
Dead simple template inheritance with
extendsandincludehelper comes out of box.layout.html
<h1>Hello World</h1> {{ template "body" }} {{ include "sidebar.html" }}index.html
{{ extends "layout.html" }} {{ define "body"}} <p>Main content</p> {{ end }}sidebar.html
<p>Sidebar content</p>Built-in XSRF and Session support.
Powerful middleware chain.
Configuration from JSON file.
Hello World
package main
import "github.com/dinever/golf"
func mainHandler(ctx *golf.Context) {
ctx.Send("Hello World!")
}
func pageHandler(ctx *golf.Context) {
ctx.Send("Page: " + ctx.Param("page"))
}
func main() {
app := golf.New()
app.Get("/", mainHandler)
app.Get("/p/:page/", pageHandler)
app.Run(":9000")
}
The website will be available at http://localhost:9000.
Benchmark
The following chart shows the benchmark performance of Golf compared with others.

For more information, please see BENCHMARKING.md
Docs
License
관련 프로젝트 살펴보기
불러오는 중…
