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) string

Parameters & Attributes

NameTypeDescription
sstringInput 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 É")))}
Go Reference