go-env icon indicating copy to clipboard operation
go-env copied to clipboard

a golang library to manage environment variables

Results 13 go-env issues
Sort by recently updated
recently updated
newest added

I'm interested in using `env.Marshal()` to facilitate logging the environment variables that are set in build configuration for several [Paketo Buildpacks](https://github.com/orgs/paketo-buildpacks/repositories). We'd like to use the `default=` tag on some...

`strconv.Atoi` returns an int, which isn't guaranteed to be 64-bit on all platforms. To prevent ints from overflowing on 32-bit platforms when setting int64 fields, strconv.ParseInt is used instead.

Currently `Unmarshal` return error as soon as it is possible, which means that in the case of invalid env configuration we need to check it in a loop: 1. Check...

I would like to be able to define slices of data in my environment, and not have to do the extra work of processing the string into a slice after...

This PR adds the `go.mod` file with the module name as `github.com/Netflix/go-env`

Rebase of @jimmykodes 's `slice-support` branch (#13).

Specifying a Go minor revision forces all importers of the package to upgrade as well. Since I don't see any crucial benefit in enforcing this, I propose removing the requirement.

# Purpose I've contributed to a couple of Netflix OSS projects in the past ([weep](https://github.com/Netflix/weep) and [consoleme](https://github.com/Netflix/consoleme)), and wanted to give some TLC to this package to bring it up-to-date...

Hello, I experienced the same issue in #23 and in this PR attempted to fix it.