http://play.golang.org/p/cS1K_nGoI5
I'm trying to use the above program but I don't quite understand why part
of if isn't working - relative noob :)
The aim is to use json.Marshal to get a json string representation, but it
needs to have the lowercase var names, protocol, domain, etc of the
Referrer struct in the json string.
Doing the .Marshal call produces and empty Referrer, which seems to be due
to the lowercase var names in the Referrer type - which I know are non
exportable, but didn't think that would happen on a struct.
Is there any way of getting these lower case names in to the json string?
Thanks in advance,
Mat
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.