params

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package params provides implementation of Go API for argument parser

Package params provides implementation of Go API for argument parser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *parser

Types

type Data

type Data interface {
	ConfigFilePath() string
	ShowVersion() bool
}

type Option

type Option func(*parser)

func WithConfigFileDescription

func WithConfigFileDescription(desc string) Option

func WithConfigFilePathDefault

func WithConfigFilePathDefault(path string) Option

func WithConfigFilePathKeys

func WithConfigFilePathKeys(keys ...string) Option

func WithVersionDescription

func WithVersionDescription(desc string) Option

func WithVersionFlagDefault

func WithVersionFlagDefault(flag bool) Option

func WithVersionKeys

func WithVersionKeys(keys ...string) Option

Jump to

Keyboard shortcuts

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