---
title: "swapped-seek-arguments"
description: "Detect swapped io.Seeker.Seek arguments."
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.

# swapped-seek-arguments

**Default severity:** `warning`

The byte offset is the first argument and the whence constant is the second.

## Bad

```go
seeker.Seek(io.SeekStart, 0)
```

## Good

```go
seeker.Seek(0, io.SeekStart)
```

Source: https://strider.gempir.com/analyzers/swapped-seek-arguments/index.mdx
