Go strings Package ToUpper()

Introduction

To convert a string to all uppercase letters, use the ToUpper function:

package main /*  ww w  . jav  a 2  s  .c  om*/

import ( 
    "fmt" 
    "strings" 
) 

func main() { 
    fmt.Println(strings.ToUpper("test")) 
} 



PreviousNext

Related