go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

goctl doc doesn't support slices, how to handle it?

Open formal-you opened this issue 2 years ago • 3 comments

使用的命令为:goctl api doc -dir . -o readme error: Type []UserInfoResp generate error, unspport struct type: []UserInfoResp

  • 以下为使用的 service
  • service user-api { @handler UserList get /user/list returns ([]UserInfoResp) }

formal-you avatar Jul 06 '24 14:07 formal-you

Pls wraps it by structure.

kesonan avatar Jul 25 '24 06:07 kesonan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 27 '25 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 29 '25 02:10 github-actions[bot]