Browse Source

Update README.md

defer os_exit
pull/603/head
Kenneth Tan Xin You 5 years ago committed by GitHub
parent
commit
d16dde2820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

2
README.md

@ -496,7 +496,7 @@ func main() { @@ -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)
}
```

Loading…
Cancel
Save