stringutils

package
v0.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripSpaces

func StripSpaces(bytes []byte) string

StripSpaces removes all whitespaces from a slice of bytes, including actual spaces, tabs, newlines, etc. An example usage would be to load a formatted, multiline json file exposed as human-readable test data and convert it into a compact form that can easily be compared with the stringified bytes of an unmarshalled json data structure for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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