前言前段时间发现vscode 发布了远程编程与调试的插件Remote Development还有Remote WSL,经过测试发现dlv不支持Remote WSL 于是今天测试下Remote Development的调试linux配置配置golang环境准备:sudo apt-get install wget curl git mkdir /usr/golang mkdir /usr/gop...
package main; import ( "os" "fmt" "strconv" ) func main() { //打开文件,返回文件指针 file, error := os.Open("./1.txt"); if error != nil { fmt.Println(error); } fmt.Prin...
go环境安装以及配置vscode的编译环境搭配包下载https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz vim /etc/profile export GOROOT=/usr/tools/go export GOBIN=$GOROOT/bin export PATH=$PATH:$GOBIN export GOPATH=/var/gola...