Answer the question
In order to leave comments, you need to log in
What's wrong with counting length?
package main
import "fmt"
import "unicode/utf8"
func main() {
fmt.Println(len("Hello World"))
fmt.Println(utf8.RuneLen('слово'))
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question