Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.38 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.38 KB

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.