Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 380 Bytes
//toupper_lower.go
package main
import (
"fmt"
"strings"
)
func main() {
var orig string = "Hey, how are you George?"
var lower string
var upper string
fmt.Printf("The original string is : %s\n", orig)
lower = strings.ToLower(orig)
fmt.Printf("The lowercase string is : %s\n", lower)
upper = strings.ToUpper(orig)
fmt.Printf("The uppercase string is : %s\n", upper)
}
You can’t perform that action at this time.