How to convert string to lower case in Go

1 Answer

0 votes
package main

import (
	"fmt"
	"strings"
)

func main() {
    s := "GOLANG"
    
    s = strings.ToLower(s)
    
    fmt.Printf(s)
}



/*
run:

golang

*/

 



answered Aug 21, 2020 by avibootz
...