github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/type2_stdlibs.gno (about) 1 package main 2 3 import ( 4 "time" 5 ) 6 7 type Options struct { 8 debug bool 9 } 10 11 type T1 struct { 12 opt Options 13 time time.Time 14 } 15 16 func main() { 17 t := T1{} 18 t.time = time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC) 19 println(t.time) 20 } 21 22 // Output: 23 // 2009-11-10 23:00:00 +0000 UTC