kelseyhightower / envconfig

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

add support to specify the list separation character #128

Closed davidkbainbridge closed 5 years ago

davidkbainbridge commented 6 years ago

This is actually convenient for a project on which I am working, where I want to use an alternate list separator to match and existing value specification. While it could be done with a custom decoder I thought it might have wider applicability.

davidkbainbridge commented 6 years ago

@kelseyhightower @teepark Review please? (I know, expect you are busy, sorry for the nag.

teepark commented 5 years ago

I think a custom decoder is the way to go here, @davidkbainbridge. We can afford to be particularly opinionated on separator characters (and therefore keep the code simpler) because we also offer the power tool.