Configuration

toml yaml env variables ini json

spf13/viper

Go configuration with fangs

Stars2265
Contributors50
Forks246
Watchers77
Issues79
toml

BurntSushi/toml

TOML parser for Golang with reflection.

Stars1101
Contributors27
Forks155
Watchers53
Issues13
yaml

go-yaml/yaml

YAML support for the Go language.

Stars1007
Contributors14
Forks213
Watchers32
Issues96

hashicorp/hcl

HCL is the HashiCorp configuration language.

Stars805
Contributors27
Forks76
Watchers48
Issues22
env variables

kelseyhightower/envconfig

Golang library for managing configuration data from environment variables

Stars528
Contributors22
Forks93
Watchers17
Issues3
ini

go-ini/ini

Package ini provides INI file read and write functionality in Go.

Stars410
Contributors18
Forks74
Watchers22
Issues5
env variables

joho/godotenv

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

Stars380
Contributors8
Forks25
Watchers8
Issues4
ini

Unknwon/goconfig

Package goconfig is a fully functional and comments-support configuration file (.ini) parser.

Stars254
Contributors6
Forks78
Watchers26
Issues0
ini

rakyll/globalconf

Persist flag values into an ini file

Stars251
Contributors5
Forks16
Watchers8
Issues9
env variables

caarlos0/env

A KISS way to deal with environment variables in Go.

Stars189
Contributors8
Forks16
Watchers8
Issues2

koding/multiconfig

Load configuration from multiple sources in Go

Stars184
Contributors10
Forks20
Watchers15
Issues5
toml

pelletier/go-toml

Go library for the TOML language

Stars183
Contributors8
Forks38
Watchers13
Issues6
toml

naoina/toml

TOML parser and encoder library for Golang

Stars156
Contributors3
Forks27
Watchers8
Issues21

DHowett/go-plist

A pure Go Apple Property List transcoder

Stars128
Contributors3
Forks29
Watchers8
Issues11

brettlangdon/forge

Configuration file syntax and parsing for golang

Stars113
Contributors3
Forks5
Watchers10
Issues8

miguel-branco/goconfig

Configuration file parser for Go.

Stars101
Contributors4
Forks122
Watchers16
Issues5
env variables

vrischmann/envconfig

Small library to read your configuration from environment variables

Stars99
Contributors5
Forks8
Watchers5
Issues1
env variables

facebookgo/flagenv

Package flagenv provides the ability to populate flags from environment variables.

Stars93
Contributors3
Forks6
Watchers8
Issues0
toml

stvp/go-toml-config

TOML-based config for Go

Stars91
Contributors4
Forks11
Watchers6
Issues2
env variables

agonzalezro/configura

Configuration in environment variables and/or with defaults!

Stars89
Contributors3
Forks8
Watchers5
Issues1
ini

FogCreek/mini

A golang package for parsing ini-style configuration files

Stars80
Contributors4
Forks9
Watchers9
Issues0
env variables

tomazk/envcfg

Un-marshaling environment variables to Go structs

Stars79
Contributors3
Forks5
Watchers1
Issues1
json

stathat/jconfig

Simple JSON configuration file parser.

Stars70
Contributors2
Forks22
Watchers5
Issues3
ini

vaughan0/go-ini

INI parsing library for Go.

Stars63
Contributors3
Forks43
Watchers4
Issues6
env variables

joeshaw/envdecode

Go package for populating structs from environment variables using struct tags

Stars55
Contributors7
Forks13
Watchers3
Issues3
env variables

subosito/gotenv

Load environment variables dynamically in Go.

Stars52
Contributors2
Forks4
Watchers4
Issues0
ini

go-gcfg/gcfg

read INI-style configuration files into Go structs; supports user-defined types and subsections

Stars50
Contributors2
Forks17
Watchers2
Issues2

fzerorubigd/onion

Layer based configuration for #golang

Stars47
Contributors3
Forks2
Watchers4
Issues2

magiconair/properties

Java properties scanner for Go

Stars46
Contributors4
Forks15
Watchers3
Issues3
ini

zieckey/goini

A simple, flexible, efficient and powerful INI parser for Golang.

Stars41
Contributors2
Forks6
Watchers3
Issues0

spacemonkeygo/flagfile

flagfile provides a simple api for flag serialization and parsing on top of the flag package

Stars39
Contributors4
Forks6
Watchers10
Issues2
yaml

tsuru/config

Go package for dealing with YAML configuration files.

Stars38
Contributors8
Forks11
Watchers66
Issues1
toml

laurent22/toml-go

Toml parser in Go

Stars36
Contributors3
Forks9
Watchers5
Issues2
env variables

danryan/env

Go support library to aide and enhance using environment variables for configuration

Stars36
Contributors1
Forks7
Watchers2
Issues3
ini

glacjay/goini

INI file parser in go.

Stars35
Contributors6
Forks16
Watchers1
Issues1
json

DisposaBoy/JsonConfigReader

JsonConfigReader is a proxy for golang's io.Reader that strips line comments and trailing commas, allowing you to use json as a reasonable config format.

Stars32
Contributors2
Forks3
Watchers2
Issues1

jingweno/conf

Configuration loader in Go

Stars32
Contributors1
Forks3
Watchers4
Issues2

facebookgo/flagconfig

Go library to read flags from config file in addition to command line arguments.

Stars28
Contributors3
Forks5
Watchers4
Issues0
toml

achun/tom-toml

TOML parser for Golang, support comments ,formatter ,Apply

Stars22
Contributors1
Forks2
Watchers3
Issues1

phaikawl/options

A simple, flexible and convenient way of defining options in Go.

Stars21
Contributors1
Forks0
Watchers3
Issues0

itkinside/itkconfig

A simple config parser for go

Stars21
Contributors3
Forks3
Watchers22
Issues1
ini

alyu/configparser

Config ini file parser in Go

Stars19
Contributors2
Forks12
Watchers3
Issues0
json yaml

moraes/config

JSON or YAML configuration wrapper with convenient access methods.

Stars18
Contributors1
Forks0
Watchers2
Issues2
yaml

gosexy/yaml

Wraps goyaml functions for easier use of YAML files as configuration sources.

Stars16
Contributors2
Forks10
Watchers6
Issues1
yaml

wendal/goyaml2

YAML for Golang

Stars12
Contributors1
Forks9
Watchers5
Issues1
json

callum-ramage/jsonconfig

jsonconfig is a tool for conveniently using JSON formatted configuration files that can contain //comments

Stars10
Contributors1
Forks1
Watchers1
Issues0
yaml

smallfish/simpleyaml

a Go package to interact with arbitrary YAML

Stars10
Contributors2
Forks4
Watchers2
Issues0

xrash/gonf

A simple configuration file format for Golang.

Stars9
Contributors1
Forks1
Watchers2
Issues0

mediocregopher/flagconfig

A go library with similar syntax as flag for reading in parameters from either the command-line or a configuration file

Stars2
Contributors1
Forks1
Watchers2
Issues0
env variables

e-dard/gev

gev allows you to easily unmarshal environment variables into structs

Stars2
Contributors1
Forks0
Watchers1
Issues0

dc0d/confu

Provides a way for doing the configuration just the way we use the command line.

Stars2
Contributors1
Forks0
Watchers1
Issues0

quincy/configo

Simple configuration files for Go.

Stars1
Contributors1
Forks0
Watchers1
Issues2