text

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package text provides utilities for normalising and sanitising strings that are commonly needed when generating text or HTML content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(input string) string

Normalize removes excess whitespace from the provided string. Each line is trimmed and empty lines are removed to avoid Markdown formatting mismatches.

func SanitizeToCamelCase

func SanitizeToCamelCase(input string) string

SanitizeToCamelCase sanitizes a string and converts it to camel case for use as an HTML ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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