github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/const1.gno (about)

     1  package main
     2  
     3  type T struct {
     4  	a int
     5  	b string
     6  }
     7  
     8  var t = T{1, "hello"}
     9  
    10  func main() {
    11  	println(t.a, t.b)
    12  }
    13  
    14  // Output:
    15  // 1 hello