Skip to content

Support colon in map values #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

UnAfraid
Copy link

Since colon character ':' is being used as key-value delimiter that might cause problems when you want to have a map of name=url
By using SplitN we can grab the first : which should be the end of the key name and allow having one or more colons within the value without any issues.

@jasonfriedland
Copy link

I was about to raise this very change; +1 please consider this to support URL values in map items.

@hori-ryota
Copy link

@prusnak
Copy link

prusnak commented Jul 12, 2022

go-envconfig can override separator via separator keyword: https://github.com/sethvargo/go-envconfig#separator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants