After calling a function that returns an error, check it immediately:
result, err := divide(10, 0)
if err != nil {
fmt.Println("Error:", err)
return
}
fmt.Println("Result:", result)
This pattern appears throughout Go code. Check the error first, handle it, then proceed with the result. Never ignore errors. If something can fail, handle that failure explicitly.