thinkgo:用Go(Golang)编写的轻量级MVC框架

时间:2021-02-03 12:48:04
【文件属性】:
文件名称:thinkgo:用Go(Golang)编写的轻量级MVC框架
文件大小:52KB
文件格式:ZIP
更新时间:2021-02-03 12:48:04
http laravel orm mvc log ThinkGo ThinkGo是用Go(Golang)编写的轻量级MVC框架。 安装 唯一的要求是 go get -u github.com/forgoer/thinkgo 快速开始 package main import ( "fmt" "github.com/forgoer/thinkgo" "github.com/forgoer/thinkgo/think" ) func main () { th := thinkgo . New () th . RegisterRoute ( func ( route * think. Route ) { route . Get ( "/" , func ( req * think. Req ) * think. Res { return think . Text ( "Hello ThinkGo !" ) }) route . Get ( "/ping" , func ( req * think. Req ) * think. Res { return think . Json ( map [ st
【文件预览】:
thinkgo-master
----view()
--------html()
--------view.go(960B)
--------view_test.go(680B)
----.gitignore(198B)
----go.mod(140B)
----.travis.yml(174B)
----log()
--------handler()
--------formatter()
--------record()
--------log_test.go(1KB)
--------logger.go(4KB)
--------log.go(1KB)
----pipeline.go(2KB)
----LICENSE(11KB)
----think_test.go(3KB)
----go.sum(1KB)
----context()
--------response.go(3KB)
--------session.go(244B)
--------cookie.go(3KB)
--------file.go(526B)
--------request.go(6KB)
----session()
--------cookie-handler.go(485B)
--------manager.go(2KB)
--------http.go(181B)
--------handler.go(99B)
--------redis-handler.go(793B)
--------file-handler.go(672B)
--------store.go(2KB)
----helper()
--------utils.go(493B)
--------helper.go(889B)
----cache()
--------memory_store.go(3KB)
--------redis_store_test.go(2KB)
--------repository.go(2KB)
--------cache.go(849B)
--------redis_store.go(2KB)
--------memory_store_test.go(2KB)
--------README.md(1KB)
--------cache_test.go(2KB)
--------store.go(511B)
----README.md(12KB)
----filesystem()
--------utils.go(1KB)
--------fs.go(1KB)
----config()
--------session.go(267B)
--------view.go(56B)
--------cookie.go(179B)
--------app.go(82B)
--------route.go(70B)
--------config.go(980B)
--------database.go(283B)
----think()
--------route_hendler.go(592B)
--------response.go(1KB)
--------session_handler.go(1KB)
--------type.go(181B)
--------app.go(872B)
--------handler.go(392B)
--------recover_handler.go(1KB)
----router()
--------utils.go(296B)
--------resource_controller.go(15B)
--------parameter.go(70B)
--------router.go(1KB)
--------pipeline.go(1KB)
--------static.go(566B)
--------route.go(6KB)
--------rule.go(3KB)
--------middleware.go(408B)
--------metch.go(476B)
----think.go(2KB)

网友评论