VSCode-Anywhere
  • Introduction
  • Installation
    • Requirements
      • Windows requirements
      • Linux requirements
      • MacOS requirements
    • Quickstart
    • Advanced
      • Windows installation
      • Linux installation
      • MacOS installation
  • Modules
    • Module installation
    • Module update
    • Module settings
      • Global settings
        • brew settings
        • chocolatey settings
        • env settings
        • msys2 settings
        • nix settings
        • scoop settings
        • vscode settings
        • zeal settings
    • Modules list
      • Ansible
      • Bash
      • C / C++
      • C#
      • Custom
      • Deepcode
      • Docker
      • Fonts
      • Git
      • Go
      • HTML
      • Java
      • JavaScript / TypeScript
      • Markdown
      • Perl
      • PHP
      • Platformio
      • PowerShell
      • Puppet
      • Python2
      • Python3
      • Remote
      • Rest
      • ReStructuredText
      • Ruby
      • Saltstack
      • VSCode
    • Custom modules
  • Structure
    • apps
    • conf
      • saltstack
        • conf-offline
        • conf
        • pillar
        • states
    • tools
      • env
      • install
      • link
      • update
      • vscode
      • vscode-anywhere
  • Tutorials
    • Youtube tutorials
  • Release notes
    • V2
      • V2.0.0
    • V1
  • FAQ
Powered by GitBook
On this page
  • About
  • Installation
  • Requirements
  • VSCode
  • VSCode extensions
  • VSCode settings
  • Software
  • Windows software
  • Linux software
  • MacOS software
  • Documentation
  • VSCode-Anywhere
  • Environment
  • Specific settings

Was this helpful?

  1. Modules
  2. Modules list

Go

PreviousGitNextHTML

Last updated 4 years ago

Was this helpful?

About

is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Installation

vscode-anywhere:
    ansible:
        enabled: True

Requirements

No requirements.

VSCode

VSCode extensions

ms-vscode.go

VSCode settings

Global settings

{
    "go.lintTool": "gometalinter"
}

Windows settings

{
    "go.goroot": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\go\\current",
    "go.gopath": "C:\\VSCode-Anywhere\\apps\\scoop\\persist\\go"
}

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux settings

{
    "go.goroot": "/home/linuxbrew/.linuxbrew/opt/go/libexec",
    "go.gopath": "/home/myuser/VSCode-Anywhere/apps/vscode-anywhere/go"
}

Assuming you have installed in the default directory /home/myuser/VSCode-Anywhere.

VSCode keybindings

Software

Windows software

scoop

msys2

Linux software

brew

MacOS software

brew

Documentation

VSCode-Anywhere

Environment

Windows environment

GOROOT: C:\VSCode-Anywhere\apps\scoop\apps\go\current
GOPATH: C:\VSCode-Anywhere\apps\scoop\persist\go
PATH: C:\VSCode-Anywhere\apps\scoop\persist\go\bin

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux environment

GOROOT: /home/linuxbrew/.linuxbrew/opt/go/libexec
GOPATH: /home/myuser/VSCode-Anywhere/apps/vscode-anywhere/go

Assuming you have installed in the default directory /home/myuser/VSCode-Anywhere.

Specific settings

go_bin

Specify the path to the go binary.

  • Windows:

vscode-anywhere:
  go:
    go_bin: C:\VSCode-Anywhere\apps\scoop\shims\go.ps1
  • Linux / MacOS

vscode-anywhere:
  go:
    go_bin: /home/linuxbrew/.linuxbrew/bin/go

modules

For each module you must specify the path like github.com/ramya-rao-a/go-outline.

  • enabled: enabled the module

  • version: the version of the module to install

Below are all go modules installed by SCode-Anywhere:

vscode-anywhere:
  go:
    modules:
      github.com/ramya-rao-a/go-outline:
        enabled: True
        version: null
      github.com/acroca/go-symbols:
        enabled: True
        version: null
      github.com/stamblerre/gocode:
        enabled: True
        version: null
      github.com/mdempsky/gocode:
        enabled: True
        version: null
      github.com/rogpeppe/godef:
        enabled: True
        version: null
      golang.org/x/tools/cmd/godoc:
        enabled: True
        version: null
      github.com/zmb3/gogetdoc:
        enabled: True
        version: null
      golang.org/x/lint/golint:
        enabled: True
        version: null
      github.com/fatih/gomodifytags:
        enabled: True
        version: null
      github.com/uudashr/gopkgs/cmd/gopkgs:
        enabled: True
        version: null
      golang.org/x/tools/cmd/gorename:
        enabled: True
        version: null
      github.com/sqs/goreturns:
        enabled: True
        version: null
      golang.org/x/tools/cmd/goimports:
        enabled: True
        version: null
      github.com/cweill/gotests:
        enabled: True
        version: null
      golang.org/x/tools/cmd/guru:
        enabled: True
        version: null
      github.com/josharian/impl:
        enabled: True
        version: null
      github.com/haya14busa/goplay/cmd/goplay:
        enabled: True
        version: null
      github.com/alecthomas/gometalinter:
        enabled: True
        version: null
      github.com/tylerb/gotype-live:
        enabled: True
        version: null
      # github.com/sourcegraph/go-langserver:
      #   enabled: True
      #   version: null
      github.com/go-delve/delve/cmd/dlv:
        enabled: True
        version: null
      github.com/golangci/golangci-lint/cmd/golangci-lint:
        enabled: True
        version: null
      github.com/mgechev/revive:
        enabled: True
        version: null
      honnef.co/go/tools/cmd/staticcheck:
        enabled: True
        version: null
      github.com/davidrjenni/reftools/cmd/fillstruct:
        enabled: True
        version: null
      github.com/godoctor/godoctor:
        enabled: True
        version: null

Change enable from False to True in the go section (cf ).

You can also take a look at the .

For more details read the .

This adds rich language support for the Go language to VS Code.

No .

module installation
VSCode-Anywhere go module configuration
official documentation
extension
keybindings
go
mingw-w64-x86_64-gcc
go
go
Go
Go