Skip to content
Compact multiple whitespace characters in a string into a single space.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
LICENSE
Makefile
README.md
benchmark_test.go
doc.go
example_test.go
fuzz_test.go
go.mod
string_gte_go110.go
string_lt_go110.go
unit_test.go

README.md

collapsewhitespace

Build Status Go Report Card Go docs

Efficiently collapse multiple whitespace characters in a string into a single space.

Usage

import "4d63.com/collapsewhitespace"
collapsewhitespace.String("a  b	\nc") // "a b c"
You can’t perform that action at this time.