Help us shape the future of Go! Take the 2026 Go Developer Survey

guard

package
v3.4.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecoverAndLog

func RecoverAndLog(fn func(), log Logger, msg string)

Run executes fn and recovers a panic, logging a component-specific message.

Types

type Logger

type Logger interface{ Errorf(string, ...any) }

Minimal logger contract; avoids depending on any specific logging package.

Jump to

Keyboard shortcuts

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