---
title: "unchecked-type-assertion"
description: "Require checked type assertions."
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.

# unchecked-type-assertion

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

**Default severity:** `error`

Require checked type assertions.

## Bad

```go
value := input.(string)
```

## Good

```go
value, ok := input.(string)
```

Source: https://strider.gempir.com/lints/unchecked-type-assertion/index.mdx
