2022-06-06 11:31:46 -07:00

11 lines
247 B
Bash

$ go run errors.go
f1 worked: 10
f1 failed: can't work with 42
f2 worked: 10
f2 failed: 42 - can't work with it
42
can't work with it
# See this [great post](https://go.dev/blog/error-handling-and-go)
# on the Go blog for more on error handling.