How to convert unicode string to lower case in Go

1 Answer

0 votes
package main

import (
	"fmt"
	"strings"
	"unicode"
)

func main() {
    s := "Öİ"
    
    s = strings.ToLowerSpecial(unicode.TurkishCase, s)
    
    fmt.Printf(s)
}



/*
run:

öi

*/

 



answered Aug 21, 2020 by avibootz

Related questions

1 answer 174 views
174 views asked Aug 21, 2020 by avibootz
2 answers 211 views
1 answer 96 views
1 answer 131 views
1 answer 104 views
...