From c314cd8d26670feb3927c2b465e07dd1536ff7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 13 Apr 2023 00:19:04 +0200 Subject: [PATCH] Added the function for install_go in Update-pkg --- .local/bin/Update-pkg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.local/bin/Update-pkg b/.local/bin/Update-pkg index 30eb86a..ef74f37 100755 --- a/.local/bin/Update-pkg +++ b/.local/bin/Update-pkg @@ -93,6 +93,15 @@ function install_shellcheck() { fi } +function install_go() { + # Install the golang + if [[ "$(uname)" == "Darwin" ]]; then + brew install golang -q + elif [[ "$(uname -r)" =~ "gentoo" ]]; then + emerge dev-lang/go + fi +} + function install_gopls() { # Install gopls GO111MODULE=on go install golang.org/x/tools/gopls@latest @@ -175,6 +184,7 @@ function update() { function main() { command_start update_pip + command_start install_go command_start install_pyright command_start install_lazy command_start install_bash-language-server