top | item 41826645

Show HN: A Go module for reading and parsing environment variables

2 points| jk801 | 1 year ago |github.com

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.

discuss

order

No comments yet.