Skip to content

context-as-argument

Require context.Context to be the first parameter.

Updated View as Markdown

Default severity: warning

Require context.Context to be the first parameter.

Bad

func Load(id string, ctx context.Context) error

Good

func Load(ctx context.Context, id string) error
Navigation

Type to search…

↑↓ navigate↵ selectEsc close