github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/append4.gno (about) 1 package main 2 3 func printit(x ...byte) { 4 println(string(x)) 5 } 6 7 func main() { 8 x := []byte{} 9 x = append(x, "foobar"...) 10 println(string(x)) 11 } 12 13 // Output: 14 // foobar