Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
formal-you opened this issue Jul 6, 2024 · 1 comment
Open

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

formal-you opened this issue Jul 6, 2024 · 1 comment

Comments

@formal-you
Copy link

使用的命令为: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)
    }
@kevwan kevwan changed the title goctl doc 指令不支持 handle 的参数(返回值) 使用切片, 你们是怎么搞的? goctl doc doesn't support slices, how to handle it? Jul 7, 2024
@kesonan
Copy link
Collaborator

kesonan commented Jul 25, 2024

Pls wraps it by structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants