faydoc icon indicating copy to clipboard operation
faydoc copied to clipboard

User manual of faygo frame.

trafficstars

Faygo User Manual

User manual of faygo frame.

Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct Handler, Faygo will automatically bind/verify the request parameters and generate the online API doc.

Manual status: gradually completing...

简体中文

目录

  • 1.欢迎使用 faygo
  • 1.1. 安装 faygo
  • 1.2. 项目架构
  • 2.创建服务
  • 2.1. 单服务&单监听
  • 2.2. 单服务&多监听
  • 2.3. 多服务&单监听
  • 2.4. 多服务&多监听
  • 3.项目部署运行
  • 3.1. 启动所有服务实例
  • 3.2. 平滑关闭与重启
  • 3.3. 部署及元编程工具 fay
  • 4.操作与中间件
  • 4.1. 函数类型Handler
  • 4.2. 结构体类型Handler
  • 4.3. Swagger2.0在线API文档
  • 5.路由器
  • 5.1. 两种注册形式
  • 5.2. 静态路由
  • 5.3. 中间件
  • 5.4. 过滤器
  • 5.5. 配置信息
  • 6.模版渲染
  • 6.1. 渲染模板
  • 6.2. 模板标签和过滤器基础
  • 6.3. 模版包含
  • 6.4. 模版继承