Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: A Go module for reading and parsing environment variables (github.com/emillamm)
2 points by jk801 6 months ago | hide | past | favorite
EnvX is a module for reading and parsing environment variables in Go.

I decided to create this project as I found myself writing lots of boilerplate code when using os.Getenv extensively in my Go programs.

EnvX is just a type definition of func(string)string with methods for parsing values as different types and dealing with errors and defaults.

I started learning Go earlier this year and this is my first project in Go that I am proud of showing. I hope that others will find it useful.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: