Documentation ¶
Overview ¶
Package requireutil provides utilities for working with serialized requirement expressions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(str string, options ...ParseOption) [][]require.Spec
Parse returns the result of parsing the serialized requirement expression as specs. The s1 spec slice is the left hand side and s2s are the right hand sides. Delimiters can be customized using ParseOptions.
Types ¶
type ParseOption ¶
type ParseOption func(*parseOptions)
ParseOption are used to customize delimiter settings in Parse.
func Delim ¶
func Delim(str string) ParseOption
Delim returns a ParseOption setting the delimiter used for right and left hand sides of the expression.
Click to show internal directories.
Click to hide internal directories.