zeromicro / goctl-intellij

A intellij plugin of goctl
MIT License
27 stars 6 forks source link

定义return结果为slice的时候,有报错提示 #27

Closed soonio closed 1 year ago

soonio commented 1 year ago

问题

如图所示,定义get /users(GetUsersQuery) returns ([]*GetUsersQuery),结果为切片时,会飘红提示‘mismatched input '[' expecting {')', IDENT}’

bug

Goland Version

GoLand 2023.1.2
Build #GO-231.9011.34, built on May 16, 2023
Licensed to 
Subscription is active until July 12, 2024.
For non-commercial open source development only.
Runtime version: 17.0.6+10-b829.9 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.4
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Metal Rendering is ON
Registry:
    suggest.all.run.configurations.from.context=true
    debugger.new.tool.window.layout=true
    ide.completion.variant.limit=500
    ide.experimental.ui=true
    ide.images.show.chessboard=true

Non-Bundled Plugins:
    com.jetbrains.plugins.ini4idea (231.9011.41)
    cn.xiaoheiban.go-zero (1.1.4)
    com.intellij.ideolog (203.0.30.0)