The ToLower() Function is used to convert all the characters/letters of the String in lower case.
package main import "fmt" import "strings" func main() { x := "HeLLo" y := strings.ToLower(x) fmt.Println("The String in lower case is :",y) }
In the above code, we have declared a String 'HeLLo', in which the letters 'H' and two 'L's are in upper case.
So, we have used the 'ToLower()' Function to convert them to lower case and assign to a variable 'y'.