Show HN: A Go module for reading and parsing environment variables(github.com)2 points·by jk801·vor 2 Jahren·0 commentsgithub.comShow HN: A Go module for reading and parsing environment variableshttps://github.com/emillamm/envxEnvX 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.0 commentsPost comment—
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.