Un-marshaling environment variables to Go structs

envcfg Un-marshaling environment variables to Go structs Getting Started Let's set a bunch of environment variables and then run your go app #!/usr/bin/env bash export DEBUG="false" export DB_HOST="localhost" expo
Category: Golang / Configuration
Watchers: 2
Star: 98
Fork: 9
Last update: May 13, 2022

Related Repos

kris-nova Not another markup language. Framework for replacing Kubernetes YAML with Go.

kris-nova How you can use Go to replace YAML files with Kubernetes.

jware-solutions Gura Gura is a file format for configuration files. Gura is as flexible as YAML and simple and readable like TOML. Its syntax is clear and powerful, y

TomWright dasel Dasel (short for data-selector) allows you to query and modify data structures using selector strings. Comparable to jq / yq, but supports JSON,

pterm 💻 PTerm | Pretty Terminal Printer A golang module to print pretty text Show Demo Code Installation | Documentation | Examples | Q&A | Contributing ⭐

sethvargo Retry is a Go library for facilitating retry logic and backoff. It's highly extensible with full control over how and when retries occur. You can also write your own custom backoff functions by implementing the Backoff interface.

kkyr fig fig is a tiny library for loading an application's config file and its environment into a Go struct. Individual fields can have default values defined or be marked as required. Why fig? Define your

knadh koanf (pronounced conf; a play on the Japanese Koan) is a library for reading configuration from different sources in different formats in Go applications. It is a cleaner, lighter alternative to spf13/viper with better abstractions and e

jinzhu Configor Golang Configuration tool that support YAML, JSON, TOML, Shell Environment (Supports Go 1.10+) Usage package main import ( "fmt" "github.com/jinzhu/configor" ) var Config = struct { APPName string `d

google Starlark in Go This is the home of the Starlark in Go project. Starlark in Go is an interpreter for Starlark, implemented in Go. Starlark was formerly known as Skylark. The new import path for Go packages is "go.starlark.net/

syyongx CConf Introduction CConf is a Go package for handling configurations in Go applications. cconf references ozzo-config, but higher performance. Download & Install go get github.com/syyongx/cconf

stevenroose Description gonfig is a configuration library designed using the following principles: The configuration variables are fully specified and loaded into a struct variable. You only need one statement to load the configur

google Skylark in Go This is the home of the Skylark in Go project. Skylark in Go is an interpreter for Skylark, implemented in Go. Skylark is a dialect of Python intended for use as a configuration language. Like Python, it is an untyped

kevinburke ssh_config This is a Go parser for ssh_config files. Importantly, this parser attempts to preserve comments in a given file, so you can manipulate a ssh_config file from a program, if your heart desires. It's designed to be used

damnever cc is a Golang library for configuration management. Only support JSON and YAML. Installation go get -u github.com/damnever/cc Usage c, _ := cc.NewConfigFromFile("./example/example.yaml") // file m