Why base64.DecodeString and base64.Decoder behavior different?

108 views
Skip to first unread message

Googol Lee

unread,
Feb 25, 2013, 2:30:58 AM2/25/13
to golan...@googlegroups.com
Code is here: http://play.golang.org/p/bl8rUPBEmu

Content in str can be decoded by base64.StdEncoding.DecodeString, but using base64.Decoder will raise error "illegal base64 data at input byte 210". How to make base64.Decoder work?

Miek Gieben

unread,
Feb 25, 2013, 3:15:14 AM2/25/13
to golan...@googlegroups.com
[ Quoting <goog...@gmail.com> in "[go-nuts] Why base64.DecodeString a..." ]
This is issue:
https://code.google.com/p/go/issues/detail?id=4779

grtz Miek
signature.asc
Reply all
Reply to author
Forward
0 new messages