Wednesday, November 14, 2018

Install go via terminal

Why programmer just like you use terminal instead of G-U-I? Post your answer below , i like terminal because , it help me to understand what application work. First download file from go official website and follow the instruction and make sure environment set properly.

open terminal and type 
$ go
               go command open go shell , now you can run go program, test, check version etc.
[$ terminal ready to read ]

$go build helloGo.go
               this line compile go program just like c or c++
$./helloGo
               now you can want to see your output
$go run helloGo.go
             this line perform all tasks which build or ./ perform. Tasks such as compile or link the output and also execute the program  
$go version
             go version print version
go version go10.1 linux/amd64



No comments:

Post a Comment

Do you support us?

Business address
0x1D24D8f27ea73ff604C7685246bdC6ae55bddaEF

Eloquent Prince

Words are not merely for effective communication ... An orator always chooses the best possible words to convey his message . No one really...

Achieves