解决:main redeclared in this block
C:\Users\admin\Desktop\enter>go install ./... # _/C_/Users/admin/Desktop/enter .\move.go:5:6: main redeclared in this block previous declaration at .\enter.go:15:6 每个目录只能有一个main函数,不然go install ./... 就会报错 &nb…
1,159 2020-10-31 去围观package xxx is not in GOROOT
我在导入gopath目录下的包时报错“package xxx is not in GOROOT“,编译器没有去gopath下找包,查了一下原因是GO111MODULE没有关, gomod 和 gopath 两个包管理方案,并且相互不兼容,在 gopath 查找包,按照 goroot 和多 gopath 目录下 src/xxx 依次查找。在 gomod 下…
618 2020-10-30 去围观warning: go env -w GO111MODULE=... does not override conflicting OS environment variable
沟去掉
4,346 2020-10-30 去围观js取两位数隔两个在取两位
var temarry=[1,2,3,4,5,6,7,8,9,10,11,12] var temindex=0 $(temarry).each(function (i,ele) { ++temindex if( temindex==3 || temindex==4 ){ //取两位时,处理逻辑 3,4 7,8 11,12 if(temindex==4){ temindex=0 …
653 2020-10-28 去围观