debug

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package debug is a single-knob diagnostic gate.

Set CLAWK_DEBUG=1 in the environment to enable verbose behaviour across the CLI (extra daemon log lines, the SIGUSR1 goroutine dump, …). The check is cheap — a single boolean read, no allocations — so callers can gate expensive diagnostics on Enabled() even in hot paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether debug diagnostics are active for this process.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL