What is the URL of the page with the issue?
https://go.dev/doc/tutorial/handle-errors
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Screenshot

What did you do?
Ive been following this tutorial, and when getting to this error handling stage the code doesn't work anymore
What did you expect to see?
The tutorial code to just run without issues.
Looks like the norms have changed and it's not possible to return multiple elements but the tutorial is not up to date?
What did you see instead?
code erroring
$ go run .
# example.com/greetings
../greetings/greetings.go:12:20: too many return values
have (string, error)
want (string)
../greetings/greetings.go:16:21: too many return values
have (string, nil)
want (string)
What is the URL of the page with the issue?
https://go.dev/doc/tutorial/handle-errors
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Screenshot
What did you do?
Ive been following this tutorial, and when getting to this error handling stage the code doesn't work anymore
What did you expect to see?
The tutorial code to just run without issues.
Looks like the norms have changed and it's not possible to return multiple elements but the tutorial is not up to date?
What did you see instead?
code erroring