flagext

package
v0.33.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 799 modules, 1,271 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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