---
title: "invalid-strconv-argument"
description: "Detect invalid constant arguments to strconv functions."
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.

# invalid-strconv-argument

**Default severity:** `error`

The `strconv` parsing and formatting functions accept only documented number
bases, bit sizes, and floating-point format characters. Invalid constant
arguments always return errors or produce unusable results.

## Bad

```go
strconv.ParseInt(value, 1, 128)
```

## Good

```go
strconv.ParseInt(value, 10, 64)
```

Source: https://strider.gempir.com/analyzers/invalid-strconv-argument/index.mdx
