transform

package
v0.5.7 Latest Latest
Warning

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

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

Documentation

Overview

Package transform provides string and data transformation utilities.

This package contains functions that convert data from one format to another, such as slugifying strings for URL-friendly formats.

Key features:

  • Slugify: Convert strings to URL-friendly slugs

Usage:

slug := transform.Slugify("Hello World")
// Output: "hello-world"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slugify

func Slugify(input string) string

Slugify converts a string to a URL-friendly slug. Matches Zod's implementation: 1. Lowercase 2. Trim whitespace 3. Remove non-word/non-space/non-hyphen characters 4. Replace spaces and underscores with hyphens 5. Trim leading/trailing hyphens

Types

This section is empty.

Jump to

Keyboard shortcuts

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