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.