Configuration

58 packages

Packages (58)

viper

Go configuration with fangs.

29,939 2,092

godotenv

Go port of Ruby's dotenv library (Loads environment variables from `.env`).

10,198 445

sonic

A blazingly fast JSON serializing & deserializing library.

9,153 430

env

Parse environment variables to Go structs (with defaults).

5,969 271

koanf

Light weight, extensible library for reading config in Go applications. Built in support for JSON, TOML, YAML, env, command line.

3,830 184

ini

Go package to read and write INI files.

3,537 381

kong

Command-line parser with support for arbitrarily complex command-line structures and additional sources of configuration such as YAML, JSON, TOML, etc (successor to `kingpin`).

2,959 157

cleanenv

Minimalistic configuration reader (from files, ENV, and wherever you want).

2,045 128

xdg

Go implementation of the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest/) and [XDG user directories](https://wiki.archlinux.org/index.php/XDG_user_directories).

946 33

konfig

Composable, observable and performant config handling for Go for the distributed processing era.

646 53

aconfig

Simple, useful and opinionated config loader.

621 41

gookit/config

application config manage(load,get,set). support JSON, YAML, TOML, INI, HCL. multi file load, data override merge.

578 59

confita

Load configuration in cascade from multiple backends into a struct.

509 50

fig

Tiny library for reading configuration from a file and from environment variables (with validation & defaults).

385 33

GoLobby/Config

GoLobby Config is a lightweight yet powerful configuration manager for the Go programming language.

369 29

konf

The simplest API for reading/watching config from file, env, flag and clouds (e.g. AWS, Azure, GCP).

361 11

hjson

Human JSON, a configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.

347 43

config

Cloud native application configuration. Bind ENV to structs in only two lines.

339 15

envconfig

Read your configuration from environment variables.

250 30

zerocfg

Zero-effort, concise configuration management that avoids boilerplate and repetitive code, supports multiple sources with priority overrides.

198 9

argus

File watching and configuration management with MPSC ring buffer, adaptive batching strategies, and universal format parsing (JSON, YAML, TOML, INI, HCL, Properties).

165 6

harvester

Harvester, a easy to use static and dynamic configuration package supporting seeding, env vars and Consul integration.

134 27

onion

Layer based configuration for Go, Supports JSON, TOML, YAML, properties, etcd, env, and encryption using PGP.

118 16

configuration

Library for initializing configuration structs from env variables, files, flags and 'default' tag.

108 12

envh

Helpers to manage environment variables.

100 2

configuro

opinionated configuration loading & validation framework from ENV and Files focused towards 12-Factor compliant applications.

93 14

hocon

Configuration library for working with the HOCON(a human-friendly JSON superset) format, supports features like environment variables, referencing other values, comments and multiple files.

87 19

env

A lightweight package for loading environment variables into structs.

80 7

uConfig

Lightweight, zero-dependency, and extendable configuration management.

72 9

go-aws-ssm

Go package that fetches parameters from AWS System Manager - Parameter Store.

62 12

config

configure your app using file, environment variables, or flags in two lines of code.

60 4

gone/jconf

Modular JSON configuration. Keep your config structs along with the code they configure and delegate parsing to submodules without sacrificing full config serialization.

51 8

go-cfg

The library provides a unified way to read configuration data into a structure from various sources, such as env, flags, and configuration files (.json, .yaml, .toml, .env).

47 4

genv

Read environment variables easily with dotenv support.

43 5

go-up

A simple configuration library with recursive placeholders resolution and no magic.

43 8

confiq

Structured data format to config struct decoder library for Go - supporting multiple data formats.

39

conflate

Library/tool to merge multiple JSON/YAML/TOML files from arbitrary URLs, validation against a JSON schema, and application of default values defined in the schema.

37 5

enflag

Container-oriented, zero-dependency configuration library that unifies Env variable and Flag parsing. Uses generics for type safety, without reflection or struct tags.

36 1

bcl

BCL is a configuration language similar to HCL.

28

go-array

A Go package that read or set data from map, slice or json.

22

go-ssm-config

Go utility for loading configuration parameters from AWS SSM (Parameter Store).

22 13

ini

INI Parser & Write Library, Unmarshal to Struct, Marshal to Json, Write File, watch file.

18 7

yamagiconf

The "safe subset" of YAML for Go configs.

18 1

envyaml

Yaml with environment variables reader. it helps to have secrets as environment variable but load them configs as structured Yaml.

17 2

go-ini

A Go package that marshals and unmarshals INI-files.

17 7

go-conf

Simple library for application configuration based on annotated structs. It supports reading the configuration from environment variables, config files and command line parameters.

13 4

typenv

Minimalistic, zero dependency, typed environment variables library.

12 1

gonfig

Tag-based configuration parser which loads values from different providers into typesafe struct.

10 1

nfigure

Per-library struct-tag based configuration from command lines (Posix & Go-style); environment, JSON, YAML

10 3

piper

Viper wrapper with config inheritance and key generation.

10

swap

Instantiate/configure structs recursively, based on build environment. (YAML, TOML, JSON and env).

8 3

env

An environment utility package with support for unmarshaling into structs.

7 1

hedzr/store

Extensible, high-performance configuration management library, optimized for hierarchical data.

7

GoCfg

Config manager with Struct Tags based contracts, custom value providers, parsers, and documentation generation. Customizable yet simple.

6

azureappconfiguration

The configuration provider for consuming data in Azure App Configuration from Go applications.

5 4

go-config

Simple and convenient library for working with app configurations.

4