flags

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destination

func Destination() string

func ListenAddr

func ListenAddr() string

func NewLogger

func NewLogger() *log.Logger

func SetDestinationFlag

func SetDestinationFlag(cmd *cobra.Command)

func SetListenerFlag

func SetListenerFlag(cmd *cobra.Command)

func SetLogFlags

func SetLogFlags(cmd *cobra.Command)

func ValidateDestinationFlags

func ValidateDestinationFlags(cmd *cobra.Command, args []string) error

func ValidateListenerFlags

func ValidateListenerFlags(cmd *cobra.Command, args []string) error

func ValidateLogFlags

func ValidateLogFlags(cmd *cobra.Command, args []string) error

func ValidateMultiFunc

func ValidateMultiFunc(merge bool, funcs ...func(*cobra.Command, []string) error) func(*cobra.Command, []string) error

ValidateMultiFunc 指定のfuncを順次適用するfuncを返す、mergeがfalseの場合、funcがerrorを返したら即時リターンする

Types

This section is empty.

Jump to

Keyboard shortcuts

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