Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormattedStringSlice ¶
type FormattedStringSlice []string
FormattedStringSlice is a custom type that implements the flag.Value interface which creates a nice formatted string representation of a slice of strings.
func (*FormattedStringSlice) Set ¶
func (f *FormattedStringSlice) Set(value string) error
Set splits the input string by commas into a slice of strings and assigns it to the FormattedStringSlice.
func (*FormattedStringSlice) String ¶
func (f *FormattedStringSlice) String() string
String formats the slice of strings into a wrapped string useful for printing to the console.
func (*FormattedStringSlice) Type ¶
func (f *FormattedStringSlice) Type() string
Type returns the type of the flag value, which is needed by the flag.Value interface.
Click to show internal directories.
Click to hide internal directories.