golf
v0.3.0: Regular updates

GO를위한 빠르고 간단하며 경량 마이크로 웹 프레임 워크에는 강력한 기능이 있으며 GO 표준 라이브러리 외에는 의존성이 없습니다.
홈페이지 : Golf.Readme.io
go get github.com/dinever/golf
라우팅 및 파라미터 검색 중에 할당이 없습니다.
Dead Simple Template 상속이 extends 되고 include 도우미가 상자 밖으로 나옵니다.
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 >내장 XSRF 및 세션 지원.
강력한 미들웨어 체인.
JSON 파일의 구성.
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" )
}이 웹 사이트는 http : // localhost : 9000에서 제공됩니다.
다음 차트는 다른 사람들과 비교하여 골프의 벤치 마크 성능을 보여줍니다.
자세한 내용은 Benchmarking.md를 참조하십시오
Golf.readme.io/docs
MIT 라이센스