go-python / go-python/gopy

A function that returns a []map[string]interface{} is incorrect for integer types

未关闭
#360 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
2.3k
派生
136
平均合并
14 分钟
30 天内合并 PR
2

描述

- A function that returns a []map[string]interface{} is incorrect for integer types

```golang
func Test() ([]map[string]interface{}, error) {
var result []map[string]interface{}
rowMap := make(map[string]interface{})
rowMap["id"] = 1
rowMap["test"] = 2
rowMap["name"] = "adadada"
result = append(result, rowMap)
return result, nil
}
```

```python
print(test())
```

- output:
```
pythonic.Slice_Map_string_interface_ len: 1 handle: 8 [pythonicsql.Map_string_interface_ len: 3 handle: 9 {id=%!s(int=1), test=%!s(int=2), name=adadada, }]
```

Integer types are returned in Python as a string `%!s(int={value})`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。