23 lines
231 B
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
|