helper

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorResponse

func NewErrorResponse(cmd *client.Command, errMsg string) *client.CommandResponse

func RecoverPanic added in v1.1.0

func RecoverPanic(log *logger.Logger, name string)

RecoverPanic recovers from panics in goroutines and logs the stack trace. Usage: defer helper.RecoverPanic(logger, "goroutine-name")

Types

This section is empty.

Jump to

Keyboard shortcuts

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