LoginSignup
15
10

More than 3 years have passed since last update.

Golang - VSCodeでインストールしたパッケージについて

Last updated at Posted at 2019-09-25

はじめに

Golangの開発環境を用意する際、VSCodeで拡張機能をインストールしたり
VSCodeのGO: Install/Update Toolsでコマンドラインツールをインストールしましたが
各機能について把握していなかったのでまとめました。

スクリーンショット 2019-09-22 20.03.18.png

スクリーンショット 2019-09-25 11.31.23.png

vscode-go

vs-code用の拡張機能
拡張機能の依存パッケージ(コマンドラインツール)をインストールことで機能が使える
機能については以下のリポジトリを参照

gocode

コードの自動補完補完ツール
github.com/mdempsky/gocode

適用前
gocode.gif

適用後
gocode_af.gif

gopkgs

インポート可能なパッケージのリストを表示
github.com/uudashr/gopkgs
gopkg.gif

go-outline

JSON表現を抽出するためのシンプルなユーティリティ
github.com/ramya-rao-a/go-outline

go-symbols

ワークスペースシンボル検索
github.com/acroca/go-symbols

guru

ソースコードの静的解析など行うツール
golang.org/x/tools/cmd/guru

gorename

変数名や関数名のリネーム等ができるリファクタリングツール
golang.org/x/tools/cmd/gorename

gotests

特定のソースファイルまたはディレクトリ全体のテスト生成
github.com/cweill/gotests/

impl

インターフェースを実装するためのメソッドスタブ生成
github.com/josharian/impl

fillstruct

構造体のフィールド初期化を行うリファクタリングツール
github.com/davidrjenni/reftools/
fillstruct.gif

goplay

Webインターフェース
github.com/haya14busa/goplay/
goplay.gif

godoctor

リファクタリング支援ツール
github.com/godoctor/godoctor

dlv

デバッガ
github.com/go-delve/delve
dlv.gif

gocode-gomod

github.com/stamblerre/gocode

godef

定義情報の参照、ジャンプ
github.com/rogpeppe/godef

適用前
godef.gif

適用後
godef_af.gif

golint

Linter
golang.org/x/lint/golint

golint.gif

15
10
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
15
10