Skip to content

zulucmd/koanf-zflag

Repository files navigation

Koanf zflag Provider

GoDoc Go Report Card GitHub release (latest SemVer) Build Status

Introduction

koanf-zflag is a Koanf provider to retrieve configuration from zulucmd/zflag.

Installation

koanf-zflag is available using the standard go get command.

Install by running:

go get github.com/zulucmd/koanf-zflag

Documentation

Reading from command line

The following example shows the use of kzflag.Provider, a wrapper over the spf13/pflag library, an advanced commandline lib. For Go's built in flag package, use basicflag.Provider.