P.S. If you are still having trouble after reading the responses to your query, use the go playground (https://play.golang.org/) to create a simple program that demonstrates what you are trying, and post the link you get from clicking the "Share" button, and explain what you would like the output to be. People can then modify your playground entry to help you.
Note that when passing slices to other functions that might modify the slice, you either need to return the modified slice or pass a pointer to the slice. This is why the append function is the way it is. ...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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/20191015120406.532esrartpryiw6k%40basil.wdw.