strings

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() template.FuncMap

FuncMap returns a function map with functions for working with strings.

func Titleize

func Titleize(s string) string

Titleize capitalizes the first letter of each word in a string (English)

func ToString

func ToString(i any) string

ToString converts any type to a string

func Truncate

func Truncate(s string, length int) string

Truncate truncates a string to a specified length and appends "..." if longer

Types

This section is empty.

Jump to

Keyboard shortcuts

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