github.com/traefik/yaegi@v0.15.1/_test/struct11.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"net/http"
     6  )
     7  
     8  type Fromage struct {
     9  	http.ResponseWriter
    10  }
    11  
    12  func main() {
    13  	a := Fromage{}
    14  	if a.ResponseWriter == nil {
    15  		fmt.Println("nil")
    16  	} else {
    17  		fmt.Println("not nil")
    18  	}
    19  }
    20  
    21  // Output:
    22  // nil