---
title: "context-as-argument"
description: "Require context.Context to be the first parameter."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# context-as-argument

<!-- Code generated by docs/scripts/generate-check-docs.go; DO NOT EDIT. -->

**Default severity:** `warning`

Require context.Context to be the first parameter.

## Bad

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

## Good

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

Source: https://strider.gempir.com/lints/context-as-argument/index.mdx
