util

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 9 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 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.

func Diffstat

func Diffstat(d string) (*string, error)

Diffstat uses `diffstat(1)` utility to summarize a `diff(1)` output

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