Files
lo/docs/data/core-words.md
T
2025-10-06 17:15:49 +02:00

621 B

name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
name slug sourceRef category subCategory playUrl variantHelpers similarHelpers position signatures
Words words string.go#L210 core string https://go.dev/play/p/-f3VIQqiaVw
core#string#words
core#string#pascalcase
core#string#camelcase
core#string#kebabcase
core#string#snakecase
core#string#capitalize
core#string#chunkstring
core#string#substring
80
func Words(str string) []string

Splits a string into a slice of its words, separating letters and digits and removing non-alphanumeric separators.

lo.Words("helloWorld")
// []string{"hello", "world"}