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.13 (latest)
Published
Mar 14, 2025
Platform
darwin/amd64
Imports
1 packages
Last checked
7 hours ago

Tools for package owners.