Last updated 15 days ago
To convert a string to uppercase, we can take advantage of strings module of Golang.
strings
package main import ( "fmt" "strings" ) func main() { myString := "Hello!" fmt.Println(strings.ToUpper(myString)) }
Source: