【文件属性】:
文件名称:golf:高尔夫网络框架
文件大小:65KB
文件格式:ZIP
更新时间:2021-02-04 19:40:48
go middleware framework router web
一个用于Go的快速,简单,轻量级的微型Web框架,具有强大的功能,除Go Standard库外没有任何依赖关系。
主页:
安装
go get github.com/dinever/golf
产品特点
路由和参数检索期间无分配。
具有extends和include帮助器的简单模板继承无效。
layout.html
< h1> Hello World h1>
{{ template "body" }}
{{ include "sidebar.html" }}
index.html
{{ extends "layout.html" }}
{{ define "body"}}
【文件预览】:
golf-master
----template.go(5KB)
----xsrf.go(1KB)
----error.go(4KB)
----session_test.go(2KB)
----context_test.go(11KB)
----logger_test.go(2KB)
----app.go(5KB)
----BENCHMARKING.md(6KB)
----xsrf_test.go(695B)
----middleware.go(4KB)
----view_test.go(1KB)
----context.go(8KB)
----golf-logo.png(34KB)
----config_test.go(4KB)
----examples()
--------mem_session()
--------xsrf_protection()
--------config_control()
----.travis.yml(239B)
----LICENSE(1KB)
----README.md(2KB)
----router_test.go(6KB)
----template_test.go(1KB)
----tree.go(3KB)
----view.go(2KB)
----session.go(3KB)
----config.go(5KB)
----router.go(3KB)