How to go play hell word

Brought to you today how to go play a hell word (manual funny)

Introduction go on, I do not say, on the Baidu search a lot,

To use the software Visual Studio Code (VScode)

Download go address: https://golang.google.cn/dl/, according to their need to download, all the way to the next step after download, install it according to their needs.

Note that the installation position during installation, preferably custom setup switch position.

 

After a successful installation, you can configure the environment variables,

Right My Computer >> Properties >> Advanced >> System Settings >> Environment Variables System Variables double-click the path >> >> >> New here refers to go to the bin directory

 

Black then start window win + R, and then enter cmd

 

Then the black window directly input go, happen, the configuration was successful

 

You should use the following VScode, no VScode words, written in black window may be.

In VScode new folder, so the file structure on it.

 

Then, we can write programs to run one of the largest in the world, and yes, he is hell word (manual nugget funny)

package main
import "fmt"

func main() {
    fmt.Println("Hello, World!")
}
 
Then you can run him in the end go to the next file directory.
Enter the file name go run

 

Upon completion, boy, you can go brag force, after all, you are the person who used the go

 

 

Guess you like

Origin www.cnblogs.com/lowbi/p/10926905.html