Skip to content

Small error in the ReadMe #1

Description

@ethan2k

There's a small error in the ReadMe where it is not matching the actual code:

It shows as examples the usage of:

errors.AddContext(err, "field", "message")
errors.GetContext(err) // map[string]string{"field": "field", "message": "message"}

But in the code, the methods are actually named respectively:

errors.AddErrorContext(...)
errors.GetErrorContext(...)

Last but certainly not least: this looks like a great example. Thank you for the inspiration!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions