envyaml

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

README

envYaml (Yaml with environment value loader)

codecov CodeQL GitHub release (latest SemVer) Go Report Card

Storing application configuration in YAML files offers a clean and straightforward solution, but it's crucial to avoid exposing sensitive data like passwords and API keys. Environment variables provide a secure way to store secrets, preventing them from leaking into your codebase.

The envyaml package bridges this gap, allowing you to seamlessly integrate environment variables into your YAML configuration. No more plain-text secrets or complex workarounds! Simply reference environment variables within your YAML file using placeholders, and envyaml will handle the rest, securely substituting the values during parsing.

With envyaml, you can:

Keep your configuration clean and organized in YAML. Protect sensitive data by storing it in environment variables. Enjoy a simple and intuitive integration process. No more compromising between convenience and security. envyaml empowers you to manage your application configuration effectively while keeping your secrets safe.

Example:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(configFilePath string, configStruct interface{}) error

LoadConfig unmarshals a YAML file into a struct, replacing placeholders with environment variables and performing validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL