lombric

package
Version: v1.82.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Overview

Package lombric contains a wrapper around viper that extends and makes it easy to write conposable configuration structures using exclusively struct tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(conf Configurable)

Initialize does all the basic job of bindings

Types

type Configurable

type Configurable interface {
}

Configurable is the interface of a configuration.

type EnvPrexixer

type EnvPrexixer interface {
	Prefix() string
}

EnvPrexixer is the interface to implement in order to support arguments from env.

type VersionPrinter

type VersionPrinter interface {
	PrintVersion()
}

VersionPrinter is an extension to Configurable that can print its version.

Jump to

Keyboard shortcuts

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