/
githubmirror
/
GoFrame
Обзор
Документация
Войти
/
githubmirror
/
GoFrame
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
text/gstr/gstr_length.go
14 строк
408 B
huangqian
tidy gstr file
21 дек 2021, 18:24
21 дек 2021, 18:24
a9647a7
Код
Авторство
О чём код?
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package gstr import "unicode/utf8" // LenRune returns string length of unicode. func LenRune(str string) int { return utf8.RuneCountInString(str) }