- 授权协议: Apache
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/thinkoner/thinkgo
- 软件文档: https://github.com/thinkoner/thinkgo
软件介绍
ThinkGo
ThinkGo 是一个轻量级的 Go 语言 MVC 框架,目前支持路由、中间件、控制器、请求、响应、Session、视图、日志、缓存、ORM等 web 框架应该具备的基本功能,ThinkGo致力于让代码简洁且富于表达力,帮助开发者快速构建一个 Web 应用。
特性
- 简洁的路由,支持参数注入
- 强大的路由中间件,支持
前置/后置中间件 - Session支持,支持cookie、redis及自定义存储
- 强大的日志服务,支持多通道存储,遵循
RFC 5424规范。 - 缓存,支持memory、redis及自定义缓存驱动
- 简洁的ORM,能使用原生 SQL、流畅的查询构造器
安装
go get github.com/thinkoner/thinkgo
快速开始
package main
import (
"fmt"
"github.com/thinkoner/thinkgo"
"github.com/thinkoner/thinkgo/route"
"github.com/thinkoner/thinkgo/context"
)
func main() {
app := thinkgo.BootStrap()
app.RegisterRoute(func(route *route.Route) {
route.Get("/", func(req *context.Request) thinkgo.Response {
return thinkgo.Text("Hello ThinkGo !")
})
route.Get("/ping", func(req *context.Request) thinkgo.Response {
return thinkgo.Json(map[string]string{
"message": "pong",
})
})
// Dependency injection
route.Get("/user/{name}", func(req *context.Request, name string) thinkgo.Response {
return thinkgo.Text(fmt.Sprintf("Hello %s !", name))
})
})
// listen and serve on 0.0.0.0:9011
app.Run()
}
主要功能
-
路由
-
控制器
-
请求
-
响应
-
视图
-
Session
-
日志
-
缓存
协议
采用 Apache 2.0 协议发布。
项目地址
GitHub: https://github.com/thinkoner/thinkgo
Gitee: https://gitee.com/thinkgo/thinkgo
联系
有任何问题可以提issues或者PR。
React Native开发指南
[美]艾森曼 / 黄为伟 / 人民邮电出版社 / 2016-6-1 / CNY 59.00
本书通过丰富的示例和详细的讲解,介绍了React Native这款JavaScript框架。在React Native中利用现有的JavaScript和React知识,就可以开发和部署功能完备的、真正原生的移动应用,并同时支持iOS与Android平台。除了框架本身的概念讲解之外,本书还讨论了如何使用第三方库,以及如何编写自己的Java或Objective-C的React Native扩展。一起来看看 《React Native开发指南》 这本书的介绍吧!
