diff --git a/README.md b/README.md index 35eea9f..9a86248 100644 --- a/README.md +++ b/README.md @@ -496,7 +496,7 @@ func main() { // <-ctx.Done() if your application should wait for other services // to finalize based on context cancellation. log.Println("shutting down") - os.Exit(0) + defer os.Exit(0) } ```