debugx

package
v0.0.0-...-7571207 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compact

func Compact(errs ...error) error

Compact returns the first error in the set, if any.

func DumpOnSignal

func DumpOnSignal(ctx context.Context, sigs ...os.Signal)

DumpOnSignal runs the DumpRoutes method and prints to stderr whenever one of the provided signals is received.

func DumpRoutines

func DumpRoutines() (path string, err error)

DumpRoutines writes current goroutine stack traces to a temp file. and returns that files path. if for some reason a file could not be opened it falls back to stderr

func Reverse

func Reverse(s string) string

Reverse returns the string reversed rune-wise left to right.

func WriteNopCloser

func WriteNopCloser(w io.Writer) io.WriteCloser

WriteNopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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