Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 717 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 717 Bytes

ant-coder

一个常用脚手架的生成器

Build

  • go-bindata -pkg templates -o templates/bindata.go templates/...
  • go build

Use

  • ant-coder -s [scene]
  • support scene:
    • go_model: 基于xorm可以根据表结构自动生成mysql model,model的结构借鉴PHP的Yii框架。核心意图是约束xorm过于灵活的使用方式,让任何实现只有一种写法
    • go_ui: API接口脚手架
    • go_loop_worker: 循环任务脚手架,适合于轮训场景
    • go_crontab_worker: 定时任务脚手架,适合于每分钟或每小时执行一次的场景
    • go_rpcx_server: RPCX的服务端脚手架。RPCX是一个类Dubbo的RPC框架,可以参考:https://github.com/smallnest/rpcx.