Skip to content

Releases: struct0x/envconfig

v1.3.0

13 Feb 14:09
v1.3.0

Choose a tag to compare

  • feat: tightening allocation rules, adding dealloc when value not populated
  • feat: EnvFileLookup falls back to OS env when file cannot be read

v1.2.0

12 Feb 14:59
v1.2.0

Choose a tag to compare

  • Remove prefix param from EnvCollector.CollectEnv (breaking change)
  • Rename EnvGetter.Read to ReadIntoStruct for clarity
  • EnvCollector fields no longer require tags
  • Add nil holder check in Read
  • Fix unmarshaler priority consistency (json > binary > text in both paths)
  • Expand error handling docs in README and godoc
  • Document []byte, IgnoreEmptyEnvLookup, and all error conditions

v1.1.0

11 Feb 10:56
v1.1.0

Choose a tag to compare

v1.0.0

27 Jan 11:01
v1.0.0
e6e1dd9

Choose a tag to compare

v1.0.0 - stable release

v0.2.0

24 Oct 19:51
b54c3a5

Choose a tag to compare

What's Changed

Full Changelog: v0.1.1...v0.2.0

v0.1.1

27 Sep 18:36
3512019

Choose a tag to compare

  • minor changes to decoding function

v0.1.0

13 Sep 12:22
a7c2d82

Choose a tag to compare

A small, dependency-free Go library for loading configuration from environment variables directly into your structs.

It supports nested structs, prefixes, defaults, required fields,
slices, maps, arrays, pointers, durations, and custom (un)marshalers.
A helper is provided to read variables from a .env file.

  • Zero dependencies
  • Simple, tag-driven API
  • Works with standard os.LookupEnv or a custom lookups
  • Optional .env file loader (supports comments, export, quoting, inline comments)