(goctl): fix map conversion (#4306)

This commit is contained in:
kesonan
2024-08-08 22:19:14 +08:00
committed by GitHub
parent 2883111af5
commit c1f12c5784

View File

@@ -78,7 +78,7 @@ func (a *Analyzer) astTypeToSpec(in ast.DataType) (spec.Type, error) {
return spec.MapType{
RawName: v.RawText(),
Key: v.RawText(),
Key: v.Key.RawText(),
Value: value,
}, nil
case *ast.PointerDataType: