viperx

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 18

Documentation

Overview

Package viperx provides shared functions used with viper to help reduce code duplication. An example of this is the BindFlag function, which binds a viper flag to a cli flag while handling error checking for you.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustBindFlag

func MustBindFlag(v *viper.Viper, name string, flag *pflag.Flag)

MustBindFlag provides a wrapper around the viper bindings that panics if an error occurs

Types

This section is empty.

Jump to

Keyboard shortcuts

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