This PR updates the installation instructions in the README to reflect the changes introduced in Go 1.16. The current go get command no longer installs the binary when using the module mode, which is now the default for Go.
The proposed change uses go install:
go install github.com/robertkrimen/godocdown/godocdown@latest
This will ensure that the binary is correctly installed to GOBIN (or GOPATH/bin if GOBIN is not set).
Why this change is necessary:
The go get command as it currently stands in the README only downloads the source code without installing the executable in Go 1.16+.
Using go install is the recommended way to install binaries from a module in Go 1.16 and later.
This PR updates the installation instructions in the README to reflect the changes introduced in Go 1.16. The current
go get
command no longer installs the binary when using the module mode, which is now the default for Go.The proposed change uses
go install
:This will ensure that the binary is correctly installed to
GOBIN
(orGOPATH/bin
ifGOBIN
is not set).Why this change is necessary:
go get
command as it currently stands in the README only downloads the source code without installing the executable in Go 1.16+.go install
is the recommended way to install binaries from a module in Go 1.16 and later.