Skip to content

Releases: struct0x/envconfig

v1.4.2

Choose a tag to compare

@IAmRadek IAmRadek released this 01 Jun 14:13
v1.4.2
a4fafc4

v1.3.0

Choose a tag to compare

@IAmRadek IAmRadek released this 13 Feb 14:09
v1.3.0
  • 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

Choose a tag to compare

@IAmRadek IAmRadek released this 12 Feb 14:59
v1.2.0
  • 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

Choose a tag to compare

@IAmRadek IAmRadek released this 11 Feb 10:56
v1.1.0

v1.0.0

Choose a tag to compare

@IAmRadek IAmRadek released this 27 Jan 11:01
v1.0.0
e6e1dd9

v1.0.0 - stable release

v0.2.0

Choose a tag to compare

@IAmRadek IAmRadek released this 24 Oct 19:51
b54c3a5

What's Changed

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

v0.1.1

Choose a tag to compare

@IAmRadek IAmRadek released this 27 Sep 18:36
3512019
  • minor changes to decoding function

v0.1.0

Choose a tag to compare

@IAmRadek IAmRadek released this 13 Sep 12:22
a7c2d82

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)