Documentation ¶
Overview ¶
Package util contains shared functions used by several packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLIDescription ¶
func StringSliceContains ¶
StringSliceContains finds if a string exist in a slice of strings.
func WrapToMargin ¶
Types ¶
type CLIStringSlice ¶
type CLIStringSlice []string
CLIStringSlice is used to accept multiple values from a CLI argument like:
-foo value1 -foo value2
Usage:
var foos CLIStringSlice flag.Var(&foos, "foo", "Some description for this param.")
func (*CLIStringSlice) Set ¶
func (i *CLIStringSlice) Set(value string) error
func (*CLIStringSlice) String ¶
func (i *CLIStringSlice) String() string
type FilterFlags ¶
type FilterFlags struct { // Specific exclusions. NoEvents bool NoResidences bool NoPlaces bool NoSources bool NoMaps bool NoChanges bool NoObjects bool NoLabels bool NoCensuses bool // Only official tags. OnlyOfficial bool // When comparing, hide lines that are equal on both sides. HideEqual bool // Condense NAME nodes to a simple string. NameFormat string }
func (*FilterFlags) FilterFunctions ¶
func (ff *FilterFlags) FilterFunctions() []gedcom.FilterFunction
func (*FilterFlags) SetupCLI ¶
func (ff *FilterFlags) SetupCLI()
Click to show internal directories.
Click to hide internal directories.