Thank you, Marvin.  About the same time you wrote this, the answer likewise 
dawned on me.

 

> Look at https://play.golang.org/p/2tz2asuZcGc where I have changed 
>
>     fmt.Println(tmp) 
> to 
>     fmt.Printf("%#v\n", tmp) 
>
> and I think you will understand that tmp does not contain what you 
> thought it did.  Split splits the string at "/", not at "/" and " ", so 
> tmp contains four strings, "this", "that there", "here that", and 
> "this". 
>
> ...Marvin 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to