util

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffName

func DiffName(m manifest.Manifest) string

DiffName computes the filename for use with `DiffStr`

func DiffStat added in v0.24.0

func DiffStat(d string) (string, error)

Diffstat creates a histogram of a diff

func DiffStr

func DiffStr(name, is, should string) (string, error)

DiffStr computes the differences between the strings `is` and `should` using the UNIX `diff(1)` utility.

Types

type FilteredErr

type FilteredErr []*regexp.Regexp

FilteredErr is a filtered Stderr. If one of the regular expressions match, the current input is discarded.

func (FilteredErr) Write

func (r FilteredErr) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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