gadget:Go 的 RESTful 路由和控制器

时间:2021-06-23 06:38:57
【文件属性】:
文件名称:gadget:Go 的 RESTful 路由和控制器
文件大小:53KB
文件格式:ZIP
更新时间:2021-06-23 06:38:57
Go Gadget 是 Go 的 Web 框架 Gadget 是一个小型的 Web 应用程序框架,对内容协商情有独钟。 它需要 Go1.1 的工作安装和根据设置的工作区/环境变量。 您可以一次安装及其所有子包: go get -v github.com/redneckbeard/gadget/... 您可以阅读的,或完成下面的快速示例项目。 好的。 我有一些照片想与一些朋友分享,所以我们将制作一个照片应用程序。 我将在$GOPATH/src的根目录下运行$GOPATH/src工具。 $ gdgt new photos Created directory photos/controllers Created directory photos/app Created directory photos/templates Created directory photos/static/c
【文件预览】:
gadget-master
----serve.go(668B)
----registry_test.go(6KB)
----example_test.go(912B)
----response.go(977B)
----controller_test.go(2KB)
----route_test.go(9KB)
----env()
--------env.go(3KB)
----registry.go(5KB)
----gdgt()
--------main.go(90B)
--------project.go(2KB)
--------controller.go(2KB)
--------loader.go(784B)
--------templates()
----strutil()
--------strutil.go(2KB)
--------strutil_test.go(651B)
----broker_test.go(3KB)
----route.go(5KB)
----response_test.go(5KB)
----user_test.go(2KB)
----handler_test.go(7KB)
----query()
--------conn.go(917B)
--------query.go(2KB)
--------doc.go(121B)
----broker.go(1KB)
----.travis.yml(131B)
----LICENSE(1KB)
----doc.go(200B)
----request.go(3KB)
----README.md(7KB)
----user.go(1KB)
----sitemap()
--------controller.go(695B)
--------sitemap.go(2KB)
----serialize.go(947B)
----controller.go(5KB)
----templates()
--------template.go(4KB)
--------testdata()
--------five_hundred.go(482B)
--------template_test.go(2KB)
----.gitignore(19B)
----forms()
--------fields.go(7KB)
--------example_test.go(2KB)
--------doc.go(524B)
--------field_test.go(7KB)
--------form.go(6KB)
--------form_test.go(5KB)
----default.go(4KB)

网友评论