strings.RuneCount
少于1分钟
将以下英文翻译为中文:
strings.RuneCount
https://gohugo.io/functions/strings.runecount/
Determines the number of runes in a string.
语法
strings.RuneCount INPUT
In contrast with strings.CountRunes function, which strips HTML and whitespace before counting runes, strings.RuneCount simply counts all the runes in a string. It relies on the Go [utf8.RuneCountInString] function.
| |
另请参阅
最后修改 June 1, 2023: 新增一个配置参数:sidebar_menu_truncate = 500 用于解决菜单不全的问题 (27810f1)