Re: [go-nuts] Json encoder produces base64

2020-04-05 Thread Shane H
OMG, it was my *test* that was modifying the value... Thanks so much for your time On Monday, April 6, 2020 at 4:24:10 PM UTC+10, Jakob Borg wrote: > > Hi Shane, > > This doesn't happen with your example: > https://play.golang.org/p/C3zb6Qyx-2f > > Can you provide a small example of when it doe

Re: [go-nuts] Json encoder produces base64

2020-04-05 Thread Jakob Borg
Hi Shane, This doesn't happen with your example: https://play.golang.org/p/C3zb6Qyx-2f Can you provide a small example of when it does happen? //jb On 6 Apr 2020, at 08:03, Shane H mailto:shane@gmail.com>> wrote: I know that it's documented that the json encoder will produce base64 "Array

[go-nuts] Json encoder produces base64

2020-04-05 Thread Shane H
I know that it's documented that the json encoder will produce base64 "Array and slice values encode as JSON arrays, except that []byte encodes as a base64-encoded string", but I am getting a base64 response when I pass in a string response := []string response = append(response, "http://local