Skip to content

Tags: uber-go/guide

Tags

2023-05-09

Toggle 2023-05-09's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
table tests: make guidance less prescriptive (#174)

2023-04-13

Toggle 2023-04-13's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Handle errors once (#179)

Adds new guidance on how handling errors once
rather than double handling, e.g. log-and-return.

Resolves #65

2022-10-18

Toggle 2022-10-18's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add guidance on goroutine lifecycle management (#158)

In general, we prefer for goroutines to have well-managed lifecycles.
No uncontrolled background work that cannot be stopped.
This change tries to distill some of the guidance around it into a style
guide entry.
In particular,

- goroutines must end or be stoppable
- APIs must block for goroutines to finish
- `init()` should never spawn a goroutine