package
4.0.0-alpha.4
Repository: https://github.com/peterbourgon/ff.git
Documentation: pkg.go.dev

# Functions

Compare one set of vars with another and t.Error on any difference.
DiffString produces a git-like diff of two multi-line strings.
NewNestedConstructor returns a constructor where flags have specific hierarchical names delimited by the provided delim.
UnindentString trims s of leading and trailing whitespace, and then trims each line in s of every prefix.
ValidateFlags checks the core invariants of a flag set and its flags.

# Variables

CoreConstructor produces a standard flag set with both short and long names.
DefaultConstructors are used for test cases that don't specify constructors.
StdConstructor produces a stdlib flag set adapter.

# Structs

Constructor produces a flag set, and a set of vars managed by that flag set.
ParseTest describes a parsing test scenario.
Vars are a common set of variables used for testing.

# Type aliases

TestCases are a collection of test cases that can be run as a group.