Skip to content
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

added Decode interface #14

Merged
merged 1 commit into from
Jun 2, 2016
Merged

added Decode interface #14

merged 1 commit into from
Jun 2, 2016

Conversation

bradrydzewski
Copy link
Contributor

this pull request adds an interface for custom decoding. This is similar to what you would find in the json package or in some other env packages, like https://github.com/kelseyhightower/envconfig#custom-decoders

@joeshaw
Copy link
Owner

joeshaw commented Apr 15, 2016

Good idea! Thanks for the patch.

Could you add a test for non-struct types that also implement the Decoder interface? Since the codepaths differ for structs versus non-structs, I'd like to have a test to ensure I don't accidentally break it in the future.

@joeshaw joeshaw merged commit 80c24ad into joeshaw:master Jun 2, 2016
joeshaw added a commit that referenced this pull request Jun 2, 2016
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.

None yet

2 participants