Your error can be easily fixed by writing []string{"xushiwei", "hughlv", 
"pandaman", "guangsong"} instead of{"xushiwei", "hughlv", "pandaman", 
"guangsong"} https://play.golang.org/p/XCg0_R7_ex
Also, please consider using https://play.golang.org to share code. It's 
much easier for everyone.


On Saturday, November 18, 2017 at 3:26:03 PM UTC+1, 28911...@gmail.com 
wrote:
>
>
>
> I write the program in the 1111.txt.The purpose of this progaram is to 
> marshal the structure,unmarshal it and output some result.But I can't 
> output the marshal result and there are some errors exist .How to solve 
> it??Thank you for reading.  
>

-- 
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