12 lines
No EOL
309 B
Text
12 lines
No EOL
309 B
Text
if [[ $(whence -p go 2> /dev/null) ]]; then
|
|
local GO_BIN="$(go env GOPATH)/bin"
|
|
if [[ ! -d "${GO_BIN}" ]]; then
|
|
mkdir -p "${GO_BIN}"
|
|
fi
|
|
|
|
if [[ ! -a "${GO_BIN}/gopls" ]]; then
|
|
pushd "${GO_BIN}"
|
|
GO111MODULE=on go get golang.org/x/tools/gopls@latest
|
|
popd
|
|
fi
|
|
fi |