strings

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package strings contains custom functions extending the native `strings` package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifierToDisplayName

func IdentifierToDisplayName(fileName string) string

IdentifierToDisplayName performs some basic substitutions to make a pipeline identifier more legible in logs

func PrettyPrintedByteCount

func PrettyPrintedByteCount(byteCount int) string

PrettyPrintedByteCount returns a string representation of a file/memory size suitable for display to the user

func QuoteValue

func QuoteValue(value string, quoteType string) string

QuoteValue adds surrounding quotes around a string

Available quoteTypes are 'single', 'none', and 'double' (default)

func Shorten added in v0.32.2

func Shorten(commandString string, maxLength int) string

Shorten turns a string into a single-line representation of at most maxLength bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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