kelseyhightower / envconfig

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

Add support for net.URL #98

Closed posener closed 6 years ago

posener commented 6 years ago

I think that the net.URL is a very common type to be used in configuration. I already found myself several times defining a URL configuration argument as a string type, and performing url.Parse to get a *url.URL object. Since this type is not implementing the Setter or Decoder interface, it can't be used as is. I think that adding a support to this type would be very useful.

posener commented 6 years ago

Thanks!