stringext

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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