func WithStackTrace(err error) error {
	if err == nil {
		return nil
	}
	return goerrors.Wrap(err, 1)
}
Wrap the given error in an Error type that contains the stack trace. If the given error already has a stack trace,
it is used directly. If the given error is nil, return nil.
package errors
import (
	"fmt"
	goerrors "github.com/go-errors/errors"
)