flagutil

package
v0.0.0-...-3a0581a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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