Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Proposal: add option to change delimiter #207

@tamiraviv

Description

@tamiraviv

When using errors.Wrap the default delimiter is ": ".
But for me at least it seem like it should be "| ", with that I can wrap errors like this:

errors.Wrapf(err, "Error while trying to open file: %s", fileName)

I thing that instead of hard-coded delimiter we should be able to configure it with:

errors.SetDelimiter (string)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions