Simple error checking for Go.