stringutils

package
v0.0.0-...-a9c8dba Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 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