Friday, 18 September 2020

golang 1

 download & install go @ https://golang.org/

vscode install go extension

create tutorial.go
//tutorial.go

package main

import "fmt"

func main()  {
fmt.Println("Hello World!")
}

--------------------------
//cmd

C:\Users\bob\golang1>go run tutorial.go
Hello World!

C:\Users\bob\golang1>go build tutorial.go

C:\Users\bob\golang1>tutorial.exe
Hello World!

reference:

No comments:

Post a Comment