github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct11.gno (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/gnolang/gno/_test/net/http" 7 ) 8 9 type Fromage struct { 10 http.ResponseWriter 11 } 12 13 func main() { 14 a := Fromage{} 15 if a.ResponseWriter == nil { 16 fmt.Println("nil") 17 } else { 18 fmt.Println("not nil") 19 } 20 } 21 22 // Output: 23 // nil