options

package
v0.0.0-...-477b72e Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// this is example flags
	ListenAddress string
}

func NewOptions

func NewOptions() *Options

NewOptions create an instance option and return

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Complete

func (o *Options) Complete() error

Complete fill some default value to options

func (*Options) NamedFlagSets

func (o *Options) NamedFlagSets() (fs flag.NamedFlagSets)

func (*Options) Validate

func (o *Options) Validate() []error

Validate validates options

Jump to

Keyboard shortcuts

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