Application
Create new folder named src. In src folder, create new file named main.go as below:
package main
import (
"fmt"
"strings"
)
func main() {
s1 := "abc"
s1 = strings.ToUpper(s1)
fmt.Println(s1)
s2 := "DEF"
s2 = strings.ToLower(s2)
fmt.Println(s2)
}
Output
Open Terminal windows in Visual Studio Code and run command line: go run main.go
ABC
def