Files
moxa/_test/struct11.go

23 lines
231 B
Go

package main
import (
"fmt"
"net/http"
)
type Fromage struct {
http.ResponseWriter
}
func main() {
a := Fromage{}
if a.ResponseWriter == nil {
fmt.Println("nil")
} else {
fmt.Println("not nil")
}
}
// Output:
// nil