运行Go文件困难[重复]

This question is an exact duplicate of:

I am stuck on this tutorial. Nothing happens every time that I navigate to where my file is located and I try the "go run populationapi.go" step. I made a file populationapi.go in my workspace which I already set as the GOPATH variable. I have a windows computer. Which of the three folders should it be in (bin, pkg, or src)? Any ideas about what's going wrong?

https://www.programmableweb.com/news/how-to-get-started-google-actions/how-to/2017/01/31?page=4

</div>

According to the documentation, the GOPATH variable should be set to the folder containing bin, pkg, and src.

Here is the example directory layout they give:

GOPATH=/home/user/go

/home/user/go/
    src/
        foo/
            bar/               (go code in package bar)
                x.go
            quux/              (go code in package main)
                y.go
    bin/
        quux                   (installed command)
    pkg/
        linux_amd64/
            foo/
                bar.a          (installed package object)

each go program is a package and it should be in the "src/package-name/main.go" where as package-name is the directory name which is same as your package name

in your case it should be "src/populationapi/main.go"

or whatever package file name you choose

then go to the package directory and run the command "run main.go"

in the tutorial they used "ngrok" utility you need to download and run that to make it work