charmer

package module
v0.0.0-...-fda4148 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 4 Imported by: 0

README

charmer

Motivation

Both Viper and Cobra are great libraries, but when it comes to implementations, combining them turns out to be very verbose. This lib provides ability to define bindings between these two in form of tagged structure. That should cover the majority of simple use cases.

Limitations

Charmer only supports subset of types Viper and Cobra support.

Usage

See tests for example usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Charm

func Charm(x interface{}, cfg *viper.Viper, cmd *cobra.Command) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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