you can dereference nil in Go and it panics

And then use Go's pseudo exception handling and recover.