strings

package
v0.32.30 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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