requireutil

package
Version: v0.0.0-...-074c49d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func String

func String(specs [][]require.Spec) string

String formats the spec expression as a counterpart to Parse.

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL