I\'m trying to write logic like this in Golang:
if obj.Field != nil { err := DoSomething(obj.Field) if err != nil { // Log error } }