Inspectopedia Help

Usage of context.TODO()

Reports usages of context.TODO().

According to the documentation at pkg.go.dev, you need to use context.TODO when it is unclear what Context to use, or Context is not yet available. Context might not be available because of the surrounding function that has not yet been extended to accept the Context parameter.

Note that it is a temporary placeholder, and you must change it in the future to a more meaningful context (for example, context.Background()).

Inspection Details

Available in:

GoLand 2023.3

Plugin:

Go, 233.SNAPSHOT

Last modified: 13 July 2023