zoukankan      html  css  js  c++  java
  • 019- 搭建Go开发环境之在VSCode中安装GO插件

    1:配置环境变量

    GO111MODULE=on

    GOPATH=D:gopath

    GOPROXY=https://goproxy.io

     

    2:查看环境变量信息

     

    3:在VSCode中安装Go插件

     

    4:在VSCode中安装Go依赖包

    然后全选点击“OK”

    安装过程

    go.toolsGopath setting is not set. Using GOPATH D:gopath

    Installing 17 tools at D:gopathin in module mode.

      gocode

      gopkgs

      go-outline

      go-symbols

      guru

      gorename

      gotests

      gomodifytags

      impl

      fillstruct

      goplay

      godoctor

      dlv

      gocode-gomod

      godef

      goreturns

      golint

     

    Installing github.com/mdempsky/gocode SUCCEEDED

    Installing github.com/uudashr/gopkgs/v2/cmd/gopkgs SUCCEEDED

    Installing github.com/ramya-rao-a/go-outline SUCCEEDED

    Installing github.com/acroca/go-symbols SUCCEEDED

    Installing golang.org/x/tools/cmd/guru SUCCEEDED

    Installing golang.org/x/tools/cmd/gorename SUCCEEDED

    Installing github.com/cweill/gotests/... SUCCEEDED

    Installing github.com/fatih/gomodifytags SUCCEEDED

    Installing github.com/josharian/impl SUCCEEDED

    Installing github.com/davidrjenni/reftools/cmd/fillstruct SUCCEEDED

    Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED

    Installing github.com/godoctor/godoctor SUCCEEDED

    Installing github.com/go-delve/delve/cmd/dlv SUCCEEDED

    Installing github.com/stamblerre/gocode SUCCEEDED

    Installing github.com/rogpeppe/godef SUCCEEDED

    Installing github.com/sqs/goreturns SUCCEEDED

    Installing golang.org/x/lint/golint SUCCEEDED

     

    All tools successfully installed. You are ready to Go :).

  • 相关阅读:
    服务器与本地时间的倒计时
    没有花括号(大括号)的for循环也能正确执行
    js瀑布流效果
    AQS详解(AbstractQueuedSynchronizer)
    SimpleDateFormat的线程安全问题与解决方案
    jvm不打印异常栈
    Java中的序列化Serialable高级详解
    java梳理-序列化与反序列化
    AQS详解
    对ConditionQueue和锁的理解
  • 原文地址:https://www.cnblogs.com/yshyee/p/15329957.html
Copyright © 2011-2022 走看看