Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make example errors fatal #272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make example errors fatal #272

wants to merge 1 commit into from

Conversation

SpencerC
Copy link

@SpencerC SpencerC commented Jun 7, 2023

Execution continues following fmt.Println(err). Since the go standard library uses a combination of panic and log.Fatalf in its examples, it's probably a good idea to use the same pattern here.

If I hadn't tripped over this issue while working on #271, I could totally see myself copying one of these examples and glossing over the non-standard, non-terminating error handling code and letting it wind up in my application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant