package
0.1.11
Repository: https://github.com/go-modulus/modulus.git
Documentation: pkg.go.dev

# README

errlog

package main

import (
	"braces.dev/errtrace"
	"context"
	"fmt"
	"github.com/go-modulus/modulus/errors/errlog"
	"github.com/go-modulus/modulus/errwrap"
)

func Pay(_ context.Context, paymentID string) error {
	return errwrap.Wrap(
		errtrace.Errorf("failed to process payment"),
		errlog.With("paymentId", paymentID),
	)
}

func main() {
	err := Pay(context.Background(), "123")
	fmt.Println(errlog.Meta(err))
}

// Output:
// map[paymentId:123]

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author