Open In App

strings.ToLowerSpecial() Function in Golang With Examples

Last Updated : 19 May, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

strings.ToLowerSpecial() Function in Golang is used to returns a copy of the string s with all Unicode letters mapped to their lower case using the case mapping specified by c.

Syntax:

func ToLowerSpecial(c unicode.SpecialCase, s string) string

Here, c is the case mapping and s is the specified string.

Example 1:




// Golang program to illustrate
// the strings.ToLowerSpecial Function
package main
  
import (
    "fmt"
    "strings"
    "unicode"
)
  
func main() {
  
    // using the function
    fmt.Println(strings.ToLowerSpecial(unicode.TurkishCase, "Hello, Geeks"))
}


Output:

hello, geeks

Example 2:




// Golang program to illustrate
// the strings.ToLowerSpecial Function
package main
  
import (
    "fmt"
    "strings"
    "unicode"
)
  
func main() {
  
    // using the function
    fmt.Println(strings.ToLowerSpecial(unicode.TurkishCase, "Computer Portal"))
}


Output:

computer portal

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads