flagutil

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 36

Documentation

Overview

Package flagutil provides utility types for the standard flag package.

Package flagutil provides a collection of types to enhance the standard flag package, such as slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Size

type Size uint64

A Size is an integer number of bytes that satisfies the standard library flag.Value interface.

func (*Size) Set

func (size *Size) Set(value string) error

func (*Size) String

func (size *Size) String() string

type SizeList

type SizeList []Size

A SizeList is a slice of Size types that satisfies the standard library flag.Value interface.

func (*SizeList) Set

func (sl *SizeList) Set(value string) error

func (*SizeList) String

func (sl *SizeList) String() string

type StringList

type StringList []string

A StringList is a slice of strings that satisfies the standard library flag.Value interface.

func (*StringList) Set

func (sl *StringList) Set(value string) error

func (*StringList) String

func (sl *StringList) String() string

type StringToRuneMap

type StringToRuneMap map[string]rune

A StringToRuneMap satisfies the standard library flag.Value interface.

func (*StringToRuneMap) Set

func (m *StringToRuneMap) Set(value string) error

func (*StringToRuneMap) String

func (m *StringToRuneMap) String() string

type UintList added in v0.3.2

type UintList []uint

A UintList is a slice of uint types that satisfies the standard library flag.Value interface.

func (*UintList) Set added in v0.3.2

func (ul *UintList) Set(value string) error

func (*UintList) String added in v0.3.2

func (ul *UintList) String() string

Jump to

Keyboard shortcuts

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