J Morgan
0
Q:

golang upper case

package main 
  
import ( 
    "fmt"
    "strings"
) 
  
// Main method 
func main() { 
    str := "uppercase conversion"
  
    // Displaying strings 
    fmt.Println("Strings (before):") 
    fmt.Println("String 4:", str) 
  
    // Converting all the string into uppercase 
    // Using ToUpper() function 
    res := strings.ToUpper(str) 
  
    // Displaying the results 
    fmt.Println("\nStrings (after):") 
    fmt.Println("Result :", res) 
} 
0

New to Communities?

Join the community