github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/binstruct_slice0.gno (about) 1 package main 2 3 import ( 4 "fmt" 5 "image" 6 ) 7 8 func main() { 9 v := []image.Point{ 10 {X: 3, Y: 2}, 11 } 12 fmt.Println(v) 13 } 14 15 // Output: 16 // [(3,2)]