0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vscode用golang開発用モジュール一覧

Last updated at Posted at 2021-07-02

概要

Vscodeのremote containerをGoの開発環境として利用する場合、formatterやlinterに必要なモジュールが多数存在する。
remote-containerのデフォルトにあるGo環境ならすべてそろっているが、自前のDockerfileを利用する場合、自分で明示的にdownloadする必要がある。
以下に入れておいたほうがよいgomoduleの一覧を記載する。

vscode公式のGoコンテナの開発用搭載モジュールは以下に記載されています。

環境

Go 1.15~1.16

Dockerfile

RUN go get -v\
    golang.org/x/tools/gopls@v0.7.0\
    honnef.co/go/tools@v0.2.0\
    golang.org/x/lint@v0.0.0-20210508222113-6edffad5e616\
    github.com/mgechev/revive@v1.0.8\
    github.com/uudashr/gopkgs@v1.3.2\
    github.com/ramya-rao-a/go-outline@v0.0.0-20210608161538-9736a4bde949\
    github.com/go-delve/delve@v1.6.1\
    github.com/golangci/golangci-lint@v1.41.1

とりあえず、開発環境用Dockerfileに上を追記すればok

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?