使用httprouter和Redis构建RESTful API服务安装依赖go get github.com/julienschmidt/httproutergo get github.com/garyburd/redigo/redis编译运行 go build./restful-redis在浏览器
在Go语言中基础的Redis操作需要先安装 redigo go get "github.com/garyburd/redigo/redis"Go语言Redis客户端的简单示例连接池 POOL为了和redis建立连接,需要创建一个redis.Pool的对象 func newPool() redis