I was slightly surprised to discover that the Print() output for an empty 
slice, and a 1-element slice containing the empty string, are the same:

https://play.golang.org/p/btkzgk4LMT9

It does follow logically from the rules 
<https://golang.org/pkg/fmt/#hdr-Printing>.  I guess I need to train myself 
to use %q or %#v.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/59ccdf74-a80d-43a1-84e3-3fbef57ac571n%40googlegroups.com.

Reply via email to