kelseyhightower / envconfig

Golang library for managing configuration data from environment variables
MIT License
5.01k stars 377 forks source link

Support colon in map values #185

Open UnAfraid opened 3 years ago

UnAfraid commented 3 years ago

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 commented 3 years ago

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

hori-ryota commented 3 years ago

duplicated.

Replace Split to SplitN for contains colon value map by hori-ryota · Pull Request #133 · kelseyhightower/envconfig

prusnak commented 2 years ago

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