goinstall无法识别为内部或外部命令

I Am trying to install "goinstall github.com/alloy-d/goauth " but it is not working. giving the following error.

goinstall github.com/alloy-d/goauth

'goinstall' is not recognized as an internal or external command,
operable program or batch file.

And I tried with the git clone also but it is not creating exact structure.

git clone git://github.com/alloy-d/goauth

am installing it in the "$GOPATH"

To be clear, goinstall used to exist (now "go get").

As explained in "Configuration versus convention":

Over the last few years we consistently reminded people about the goinstall command (now replaced by go get) and its conventions:

  • first, that the import path is derived in a known way from the URL of the source code;
  • second, that the place to store the sources in the local file system is derived in a known way from the import path;
  • third, that each directory in a source tree corresponds to a single package;
  • and fourth, that the package is built using only information in the source code. Today, the vast majority of packages follow these conventions.

So you will find old tutorial using "goinstall".

In your case though, go get and then go install would work better.
Or go install -v github.com/alloy-d/goauth to see the details (the names of packages as they are compiled).