如何在系统中没有安装git的情况下安装golang软件包?

I'm trying to install a go package by using the command go get -u github.com/ramya-rao-a/go-outline in my project but it won't install. This is the error that I'm getting.

go: missing Git command. See https://golang.org/s/gogetcmd package github.com/ramya-rao-a/go-outline: exec: "git": executable file not found in %PATH%

I looked for the go get command in the documentation and it says

The go get fetching of source code is done by using one of the following tools expected to be found on your system:

svn - Subversion, download at: http://subversion.apache.org/packages.html

hg - Mercurial, download at https://www.mercurial-scm.org/downloads

git - Git, download at http://git-scm.com/downloads

bzr - Bazaar, download at http://wiki.bazaar.canonical.com/Download

I understand the error occurs because I don't have any of the tools mentioned installed in my system but it's something I can't help myself with because of a few restrictions. Please tell me if there's any workaround available.

You need to download the package from github, If that package depends on any-other package which is not from stdlib(standard library), you need to do the same for all and then cd to the directory where your project exists and then do:

go build

Don't forget to maintain the directory structure in your GOPATH, like github.com/xxx/xxx or golang.org/x/tools/xxx