golang.org/x/tools@v0.21.1-0.20240520172518-788d39e776b1/go/ssa/interp/testdata/src/unicode/utf8/utf8.go (about)

     1  package utf8
     2  
     3  func DecodeRuneInString(string) (rune, int)
     4  
     5  func DecodeRune(b []byte) (rune, int) {
     6  	return DecodeRuneInString(string(b))
     7  }
     8  
     9  const RuneError = '\uFFFD'