-
- Downloads
all: append(bytes, str...) works out of the box
From the append docs in the builtin package: As a special case, it is legal to append a string to a byte slice, like this: slice = append([]byte("hello "), "world"...) Change-Id: Ib14039a7476873b12a3aefccd8863e8d628b9249 Reviewed-on: https://go-review.googlesource.com/c/go/+/425102 Reviewed-by:hopehook <hopehook@qq.com> Reviewed-by:
Ian Lance Taylor <iant@google.com> Reviewed-by:
David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Showing
- src/cmd/go/internal/modindex/write.go 1 addition, 1 deletionsrc/cmd/go/internal/modindex/write.go
- src/cmd/internal/quoted/quoted.go 3 additions, 3 deletionssrc/cmd/internal/quoted/quoted.go
- src/syscall/exec_linux.go 1 addition, 1 deletionsrc/syscall/exec_linux.go
- src/time/format.go 1 addition, 1 deletionsrc/time/format.go
Loading
Please register or sign in to comment