> For the complete documentation index, see [llms.txt](https://65480539.gitbook.io/goft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://65480539.gitbook.io/goft/kong-zhi-qi/kong-zhi-qi-fang-fa-bu-xiang-fan-hui-zhi.md).

# 控制器方法不想返回值

## 确保脚手架版本是0.5.0或以上

go get -u github.com/shenyisyn/goft-gin\@v0.5.0

有时候我们因为某种原因，控制器方法不想返回任何值

请把 返回值写成 (v goft.Void)  .这样goft就不处理你的返回值了

```
func(this *WsCtl) Connect(c *gin.Context) (v goft.Void)    {
   //你的业务
   //甚至可以直接 c.Json(200,xxxxx)
      return   //直接return 即可
    

}
```
