Question from the Go test

How to handle errors in Go