websocketnhooyr.io/websocket/internal/errd Index | Files

package errd

import "nhooyr.io/websocket/internal/errd"

Index

Functions

func Wrap

func Wrap(err *error, f string, v ...interface{})

Wrap wraps err with fmt.Errorf if err is non nil. Intended for use with defer and a named error return. Inspired by https://github.com/golang/go/issues/32676.

Source Files

wrap.go

Version
v1.8.17 (latest)
Published
Aug 10, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.