导航

2013年3月18日

摘要: 对比下来,Revel的资料还是比较多,我个人推荐Revel。 Revel Web开源框架 是一个高效的Go语言Web开发框架,其思路完全来自 Java 的Play Framework。https://github.com/robfig/revel 特点:热编译,简单可选,同步(每个请求都创建自己的goroutine来处理)。 相关学习资料: 一步一步学习Revel Web开源框架http://... 阅读全文

posted @ 2013-03-18 18:34 蝈蝈俊 阅读(12717) 评论(1) 推荐(0)

摘要: 我用的驱动是:https://github.com/Go-SQL-Driver/MySQL 理由跟https://github.com/astaxie/build-web-application-with-golang/blob/master/05.2.md的一样。 比较新,更新维护的比较好; 完全支持database/sql接口 支持keepalive,保持长连接。 安装 $ go... 阅读全文

posted @ 2013-03-18 08:38 蝈蝈俊 阅读(2886) 评论(0) 推荐(0)

摘要: 天气预报接口使用的是:http://www.weather.com.cn/data/sk/101010100.html 这里的Json数据如下: { "weatherinfo": { "city": "北京", "cityid": "101010100", "temp": "11", ... 阅读全文

posted @ 2013-03-18 05:45 蝈蝈俊 阅读(1710) 评论(0) 推荐(0)