我有一个ID映射到一个字符串数组,比如accountIDs := make(map[int64][]string, 0)
,在我的响应中如下所示:
"AccountIDs": {
"1": [
"19565",
"21423"
],
"7": [
""
]
}
如何返回空数组而不是空字符串数组?
我有一个ID映射到一个字符串数组,比如accountIDs := make(map[int64][]string, 0)
,在我的响应中如下所示:
"AccountIDs": {
"1": [
"19565",
"21423"
],
"7": [
""
]
}
如何返回空数组而不是空字符串数组?