strutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFilename

func FormatFilename(input string) string

func IsValidEmail

func IsValidEmail(email string) bool

func SanitizeURL

func SanitizeURL(input string) string

func Slugify

func Slugify(input string) string

Slugify converts a string into a URL-friendly slug

func StripHTML

func StripHTML(input string) string

StripHTML removes HTML tags from a string

func Truncate

func Truncate(s string, max int) string

Truncate truncates a string to a specified length and adds an ellipsis if it exceeds that length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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