Standard library / strings
strings.ToLower()
Converts Unicode letters to their lowercase equivalents; not full locale-aware case mapping. Expected stdout: 'go é\n'.
Formal Syntax & Structure
go syntaxgo
func ToLower(s string) stringParameters & Attributes
| Name | Type | Description |
|---|---|---|
| s | string | Input text or sequence. |
Return Value
string
Converts Unicode letters to their lowercase equivalents; not full locale-aware case mapping.
Working Example
Example Snippetgo
package main
import ( "fmt" "strings")
func main() { fmt.Println(string(strings.ToLower("GO É")))}