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

use defer instead of os.Exit(m.Run()) #493

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

Commits on Feb 7, 2024

  1. docs: use defer instead of os.Exit(m.Run())

    as of go1.15 `testing.M` returns the return code of `m.Run()`, so it is
    possible to use `defer`
    golang/go#34129
    pmenglund committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    b17b9d2 View commit details
    Browse the repository at this point in the history