Skip to content

Instantly share code, notes, and snippets.

@sykesm
sykesm / config.md
Last active October 11, 2019 19:40
Config Discussion

Fabric Configuration

Fabric configuration is currently implemented around a configuration library called [viper][viper]. Viper reads configuration from files, environment variables, and flags, and exposes an API that uses dot qualified keys to reference the configuration values (think System Properties on steroids).

When configuration is read from files, the segments of the configuration key are used to walk config file stanzas to the data. Values read from the configuration file can be overridden by setting an environment variable that

@sykesm
sykesm / go.mod
Created July 22, 2020 15:52
errInvalidUTF8 is not a proto.Error
module proto-utf8
go 1.14
require (
github.com/golang/protobuf v1.4.2
google.golang.org/protobuf v1.25.0
)