8000 Added float types and float slices by caledhwa · Pull Request #20 · caarlos0/env · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added float types and float slices #20

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

Merged
merged 2 commits into from
Oct 13, 2016
Merged

Conversation

caledhwa
Copy link
Contributor

Hello!

We found that in our project we really wanted to represent floats in our env config. Therefore, here's a pull request to do just that. I implemented both float32 and float64 in addition to slice types. Unit tests and readme updated. Thanks!

Copy link
Owner
@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, just one comment :)

Float32 float32 `env:"FLOAT32"`
Float64 float64 `env:"FLOAT64"`
Float32s []float32 `env:"FLOAT32S"`
Float64s []float64 `env:"FLOAT64S"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gofmt seems to be missing here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOH! Of course! Let me get that. Thanks for catching!

@caarlos0 caarlos0 merged commit d0de832 into caarlos0:master Oct 13, 2016
@caarlos0
Copy link
Owner

Thanks!

@dselans
Copy link
Contributor
dselans commented Oct 13, 2016

👍 Very helpful!

@caledhwa
Copy link
Contributor Author

No problem. Glad to help!

@caledhwa caledhwa deleted the add-float branch October 13, 2016 20:22
nexoscp added a commit to nexoscp/env that referenced this pull request Apr 7, 2022
Added float types and float slices
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.

3 participants
0