Always check errors immediately after a call:
result, err := divide(10, 0)
if err != nil {
fmt.Println("Error:", err)
return
}
fmt.Println(result)
The if err != nil pattern is Go's most common idiom. Don't ignore errors. They tell you something went wrong that needs attention.