zoukankan      html  css  js  c++  java
  • go开发环境搭建

    环境变量
    GOPATH : D:codego
    GOROOT : C:Program FilesGo
    Path : %GOPATH%in;%GOROOT%in;

    在GOPATH目录下新建bin、pkg、src三个文件夹

    如果使用的ide是vscode 建议重启系统

    存放地址:%GOPATH%srcgolang.orgx
    https://github.com/golang/tools.git
    https://github.com/golang/mod.git
    https://github.com/golang/xerrors.git
    https://github.com/golang/lint.git

    存放地址:%GOPATH%src下 一级目录是url中的域名,即:github.com
    子目录结构同url地址
    例如:git clone https://github.com/mdempsky/gocode.git
    存放的地址就是%GOPATH%srcgithub.commdempsky

    git clone https://github.com/mdempsky/gocode.git
    git clone https://github.com/uudashr/gopkgs.git
    git clone https://github.com/ramya-rao-a/go-outline.git
    git clone https://github.com/acroca/go-symbols.git
    git clone https://github.com/stamblerre/gocode.git
    git clone https://github.com/rogpeppe/godef.git
    git clone https://github.com/sqs/goreturns.git
    git clone https://github.com/godoctor/godoctor.git
    git clone https://github.com/fatih/gomodifytags.git
    git clone https://github.com/josharian/impl.git
    git clone https://github.com/davidrjenni/reftools.git
    git clone https://github.com/cweill/gotests.git
    git clone https://github.com/haya14busa/goplay.git
    git clone https://github.com/go-delve/delve.git
    git clone https://github.com/karrick/godirwalk.git
    git clone https://github.com/pkg/errors.git
    git clone https://github.com/skratchdot/open-golang.git

    cd %GOPATH%
    go install github.com/mdempsky/gocode
    go install github.com/uudashr/gopkgs/v2/cmd/gopkgs
    go install github.com/ramya-rao-a/go-outline
    go install github.com/acroca/go-symbols
    go install golang.org/x/tools/cmd/guru
    go install golang.org/x/tools/cmd/gorename
    go install github.com/cweill/gotests/...
    go install github.com/fatih/gomodifytags
    go install github.com/josharian/impl
    go install github.com/davidrjenni/reftools/cmd/fillstruct
    go install github.com/haya14busa/goplay/cmd/goplay
    go install github.com/godoctor/godoctor
    go install github.com/go-delve/delve/cmd/dlv
    go install github.com/stamblerre/gocode
    go install github.com/rogpeppe/godef
    go install github.com/sqs/goreturns
    go install golang.org/x/lint/golint

  • 相关阅读:
    关于win10输入法问题(打不出中文)解决方法
    Docker 修改默认存储位置
    Enabling and Mounting NFS on CoreOS
    docker run mysql
    Specified key was too long; max key length is 767 bytes mysql
    C# 实现 Snowflake算法 ID生成
    无忧之道:Docker中容器的备份、恢复和迁移
    IIS Express 虚拟目录
    从零開始学android<AnalogClock与DigitalClock时钟组件.三十一.>
    jquery版本号升级不兼容的问题:$("input").attr("value")功能发生改变
  • 原文地址:https://www.cnblogs.com/517cn/p/13501083.html
Copyright © 2011-2022 走看看