Mac vscode Golang Configuration

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed. # MAC Vscode Golang configuration 1. https://golang.org/dl/Select the PKG auto-install package, and then configure the custom Gopath eg:export goroot=/usr/local/go export gopath=/users in. bash_profile /lz/goglandprojects export path= $PATH: $GOROOT/bin:/usr/local/git/bin export gobin= $GOPATH/bin export path= $PATH: $ GOBIN 2. Execute command mkdir-p $GOPATH/src/golang.org/x&&cd $GOPATH/src/golang.org/x&& git init && go get GITHUB.COM/DEREKPARKER/DELVE/CMD/DLV && go get github.com/kardianos/govendor&&git clone https:// Github.com/golang/tools.git 3. Enter Vscode, create a new Main.go file, follow the prompts to click Installall, install the static resolution library, waiting for the installation to complete. ==note:== = = (the first time to enter the need to configure vscode) = =! [Image] (http://i2.bvimg.com/618828/4fec2dc233c55bb1.jpg) 4. Debug Run section, if error occurs could not launch process:exec: "Lldb-server": Executable file not found in $PATH process exiting execute command: XC Ode-select--install431 Times Click
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.