---
title: "deep-exit"
description: "Keep process-terminating calls in main or init."
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.

# deep-exit

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

**Default severity:** `error`

Keep process-terminating calls in main or init.

## Bad

```go
func loadConfig() { if failed() { os.Exit(1) } }
```

## Good

```go
func run() error { return load() }
```

Source: https://strider.gempir.com/lints/deep-exit/index.mdx
