runtime: Index | Files

package flagext

import ""


Package Files


type ByteSize Uses

type ByteSize int

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

func (ByteSize) MarshalFlag Uses

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

MarshalFlag implements go-flags Marshaller interface

func (*ByteSize) Set Uses

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

Set the value of this bytesize (pflag value interfaces)

func (ByteSize) String Uses

func (b ByteSize) String() string

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

func (*ByteSize) Type Uses

func (b *ByteSize) Type() string

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

func (*ByteSize) UnmarshalFlag Uses

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

UnmarshalFlag implements go-flags Unmarshaller interface

Package flagext imports 1 packages (graph) and is imported by 70 packages. Updated 2020-01-29. Refresh now. Tools for package owners.