Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSIntFlagValue ¶
type CSIntFlagValue []int
CSIntFlagValue holds a slice of integers parsed from a CSV string.
func (*CSIntFlagValue) Set ¶
func (csi *CSIntFlagValue) Set(value string) error
Set parses a CSV string into integers and stores them.
func (*CSIntFlagValue) String ¶
func (csi *CSIntFlagValue) String() string
String returns the CSV representation of the integers.
type FileFlagValue ¶
type FileFlagValue string
FileFlagValue holds the content of the file provided as a flag.
func (*FileFlagValue) Read ¶
func (ffv *FileFlagValue) Read() []byte
Read opens the file and returns its content
func (*FileFlagValue) Set ¶
func (ffv *FileFlagValue) Set(value string) error
Set opens the file, reads its content, and stores it in the type.
func (*FileFlagValue) String ¶
func (ffv *FileFlagValue) String() string
String is the content of the file.
Click to show internal directories.
Click to hide internal directories.