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

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.

2 points jk801 2 years ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton