You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.7rc6
What operating system and processor architecture are you using (go env)?
mac
What did you do?
I can marshal a int64 to json's string with a tag `json:",string"``, but it could not support a []int64 to json's string, I try the following code but it fail:
The text was updated successfully, but these errors were encountered:
odeke-em
changed the title
support json marshal from []int to array of string
encoding/json: support unmarshaling []int as []string with ,string tag
Aug 18, 2016
Please answer these questions before submitting your issue. Thanks!
go version
)?1.7rc6
go env
)?mac
I can marshal a int64 to json's string with a tag `json:",string"``, but it could not support a []int64 to json's string, I try the following code but it fail:
a succeeful result.
a marshal error.
The text was updated successfully, but these errors were encountered: