Hello, The following compiles as well as evades scrutiny by go Vet (and many a human reviewer) resulting in perplexing bugs. What purpose calling append() with only one argument serves? Shouldn't it be banned?
``` var byteArray= []byte{'A', 'B',} func main() { buf:=[]byte {'C'} buf = append(byteArray) //<--- gotche meant: buf = append(*buf*, byteArray) fmt.Println(string(buf)) } ``` https://play.golang.org/p/jP8NGiEN9A -- 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.