1. 首页
  2. 移动开发
  3. 其他
  4. hfw:去小框架 源码

hfw:去小框架 源码

上传者: 2021-04-07 14:23:44上传 ZIP文件 105.11KB 热度 10次
高频 去小框架 用法: main.go func main() { _ = hfw.Handler("/", &Index{}) _ = hfw.Run() } type Index struct { hfw.Controller } func (ctl *Index) Index(httCtx *hfw.HTTPContext) { //some coding } 构建说明: 默认数据库使用mysql,服务发现使用consul,可以通过标签方式使用其他类型,目前支持的标签有sqlite3,postgres,mssql,etcd构建方式如下 go build -tags postgres,etcd
下载地址
用户评论