slack: json: cannot unmarshal string into Go value of type int64
more info coming soon, but get that after calling GetGroupHistory for 1 specific group and then looping thru:
for _, message := range history.Messages
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 18 (8 by maintainers)
@saxsir yep, looks like
json.Numberwill cover both cases: https://play.golang.org/p/75NwTQT-MG@saxsir his solution fixes it for me too
I’m having same problem. (getting
json: cannot unmarshal number into Go value of type string)How is use
json.Numberinstead ofstring? https://golang.org/pkg/encoding/json/#NumberType
json.Numberis an alias forstring.http://stackoverflow.com/questions/24480835/go-decoding-json-int-into-string
Slack discussion about
tsfield: https://github.com/slackhq/slack-api-docs/issues/7#issuecomment-67913241