stringext

package
v1.11.7 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(text string) string

func IsValidBase64

func IsValidBase64(s string) bool

IsValidBase64 reports whether s is canonical base64 under standard encoding (RFC 4648). It requires that s round-trips through decode/encode unchanged — rejecting whitespace, missing padding, and other leniencies that DecodeString alone would accept.

func NormalizeSpace

func NormalizeSpace(content string) string

NormalizeSpace normalizes whitespace in the given content string. It replaces Windows-style line endings with Unix-style line endings, converts tabs to four spaces, and trims leading and trailing whitespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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