Files
lo/docs/data/core-runelength.md
T
Samuel Berthe fa095e4b4f fix(doc): fix go playground demo URL (#832)
* fix(doc): fix go playground demo URL

* fix(doc): add more go playground demo URL
2026-03-06 00:09:59 +01:00

29 lines
502 B
Markdown

---
name: RuneLength
slug: runelength
sourceRef: string.go#L160
category: core
subCategory: string
playUrl: https://go.dev/play/p/BXT52mBk0zO
variantHelpers:
- core#string#runelength
similarHelpers:
- core#string#substring
- core#string#chunkstring
- core#string#words
- core#string#capitalize
- core#string#ellipsis
position: 30
signatures:
- "func RuneLength(str string) int"
---
Returns the number of runes (Unicode code points) in a string.
```go
lo.RuneLength("hellô")
// 5
```