cidre:cidre是Go中的模块化和可扩展的瘦Web框架

时间:2021-05-23 00:55:04
【文件属性】:
文件名称:cidre:cidre是Go中的模块化和可扩展的瘦Web框架
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-23 00:55:04
Go id cidre是Go中的模块化且可扩展的瘦Web框架。 package main import ( "github.com/yuin/cidre" "net/http" ) func main () { app := cidre . NewApp ( cidre . DefaultAppConfig ()) root := app . MountPoint ( "/" ) root . Get ( "show_welcome" , "wellcome" , func ( w http. ResponseWriter , r * http. Request ) { app . Renderer . Text ( w , "Welcome!" ) }) app . Run () } 如何安装 go get github.
【文件预览】:
cidre-master
----utils.go(3KB)
----renderer_test.go(2KB)
----_examples()
--------wiki()
--------wiki_db()
----app.go(17KB)
----app_test.go(6KB)
----config_test.go(1KB)
----LICENSE(1KB)
----doc.go(109B)
----_testdata()
--------page1.tpl(77B)
--------test1.ini(132B)
--------page2.tpl(19B)
--------common.tpl(14B)
--------layout1.tpl(26B)
----renderer.go(7KB)
----README.md(3KB)
----session.go(7KB)
----config.go(3KB)
----cidre_test.go(272B)
----utils_test.go(893B)

网友评论