Strings
Reverse
Reverse any string with full Unicode support. "hello" becomes "olleh".
func Reverse(input string) string
Title
Convert a string to title case using English language rules.
func Title(input string) string
ROT13 Encode / Decode
Apply ROT13 cipher — each letter shifts 13 positions. Apply twice to get original.
func Rot13Encode(input string) string
Caesar Cipher
Encrypt or decrypt text with a configurable letter shift value.
func CaesarEncrypt(input string, shift int) string
Truncate
Shorten a string to a max length with a customizable omission suffix.
func Truncate(input string, opts *TruncateOptions) string
IsValidEmail
Validate whether a string is a properly formatted email address.
func IsValidEmail(email string) bool
Run-Length Encoding
Compress repeated characters. "aaabbb" becomes "a3b3". Returns original if no savings.
func RunLengthEncode(input string) string