include godoc, duh
authorAJ ONeal <aj@therootcompany.com>
Thu, 1 Oct 2020 23:46:22 +0000 (23:46 +0000)
committerAJ ONeal <aj@therootcompany.com>
Mon, 5 Oct 2020 22:08:00 +0000 (22:08 +0000)
golang/install.sh

index adb6d20cba153f1c37e42a45ef1d0c448cceb62b..f11581f47c561dba19b1ec66fd665b2ab75cf06c 100644 (file)
@@ -56,6 +56,12 @@ pkg_post_install() {
     echo "Building go language tools..."
     export GO111MODULE=on
 
+    # See https://pkg.go.dev/mod/golang.org/x/tools?tab=packages
+
+    echo ""
+    echo godoc
+    "$pkg_dst_cmd" get golang.org/x/tools/cmd/godoc@latest > /dev/null #2>/dev/null
+
     echo ""
     echo gopls
     "$pkg_dst_cmd" get golang.org/x/tools/gopls@latest > /dev/null #2>/dev/null
@@ -72,6 +78,10 @@ pkg_post_install() {
     echo goimports
     "$pkg_dst_cmd" get golang.org/x/tools/cmd/goimports@latest > /dev/null #2>/dev/null
 
+    echo ""
+    echo gomvpkg
+    "$pkg_dst_cmd" get golang.org/x/tools/cmd/gomvpkg@latest > /dev/null #2>/dev/null
+
     echo ""
     echo gorename
     "$pkg_dst_cmd" get golang.org/x/tools/cmd/gorename@latest > /dev/null #2>/dev/null