nil are dereferenced.
Example:
type Person struct{ Name string }
func _(person *Person) {
if person != nil || person.Name != "Peter" {
}
}
In the provided example, person is a pointer to a Person struct, but it is nil as it is not assigned any value.
Attempting to dereference person to access Name without checking if person is nil results in a runtime error.