flagext

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSize

type ByteSize int

ByteSize used to pass byte sizes to a go-flags CLI

func (ByteSize) MarshalFlag

func (b ByteSize) MarshalFlag() (string, error)

MarshalFlag implements go-flags Marshaller interface

func (*ByteSize) Set

func (b *ByteSize) Set(value string) error

Set the value of this bytesize (pflag value interfaces)

func (ByteSize) String

func (b ByteSize) String() string

String method for a bytesize (pflag value and stringer interface)

func (*ByteSize) Type

func (b *ByteSize) Type() string

Type returns the type of the pflag value (pflag value interface)

func (*ByteSize) UnmarshalFlag

func (b *ByteSize) UnmarshalFlag(value string) error

UnmarshalFlag implements go-flags Unmarshaller interface

Jump to

Keyboard shortcuts

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