package errd

import "github.com/coder/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.12 (latest)
Published
Aug 9, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
1 month ago

Tools for package owners.