Package envconfig implements decoding of environment variables based on a user-defined specification. Typical use is using environment variables for configuration settings. Envconfig supports the use of struct tags to specify alternate, default, and required environment variables. Envconfig won't process a field with the "ignored" tag set to "true", even if a corresponding environment variable is set. Any field whose type (or pointer-to-type) implements envconfig.Decoder can control its own deserialization. Also, envconfig will use a Set(string) error method like from the flag.Value interface if implemented.

Features

  • Set some environment variables
  • Supports the use of struct tags
  • Specify alternate, default, and required environment variables
  • Envconfig has automatic support for CamelCased struct elements
  • Envconfig supports slices of any supported type
  • Envconfig supports maps (keys and values of any supported type)

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow envconfig

envconfig Web Site

Other Useful Business Software
Peer to Peer Recognition Brings Teams Together Icon
Peer to Peer Recognition Brings Teams Together

The modern employee engagement platform for the modern workforce

Create a positive and energetic workplace environment with Motivosity, an innovative employee recognition and engagement platform. With Motivosity, employees can give each other small monetary bonuses for doing great things, promoting trust, collaboration, and appreciation in the workplace. The software solution comes with features such as an open-currency open-reward system, insights and analytics, dynamic organization chart, award programs, milestones, and more.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of envconfig!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2022-02-03