5 // Copy-pasted from crypto/x509, as it is not public.
6 func toLowerCaseASCII(in string) string {
7 isAlreadyLowerCase := true
9 if c == utf8.RuneError {
10 isAlreadyLowerCase = false
13 if 'A' <= c && c <= 'Z' {
14 isAlreadyLowerCase = false
18 if isAlreadyLowerCase {
22 for i, c := range out {
23 if 'A' <= c && c <= 'Z' {