Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于Sublime Text 3的Golint插件_Go_Sublimetext3_Sublimelinter_Golint - Fatal编程技术网

用于Sublime Text 3的Golint插件

用于Sublime Text 3的Golint插件,go,sublimetext3,sublimelinter,golint,Go,Sublimetext3,Sublimelinter,Golint,我目前正在学习Go,我正在使用Sublime Text 3和sublimiter插件(除了Go之外,我还与其他语言一起使用)。我已经使用自制(我在OS X上)下载了Go,并按照这里介绍的步骤进行了操作:用于测试我的安装。我不明白为什么sublimeLineter提供的Go语言的linter不起作用。我已经在我的路径中插入了我的$GOPATH,并且/usr/local/bin/go。 以下是打印ST控制台的内容: SublimeLinter: golint activated: /Users/gi

我目前正在学习Go,我正在使用
Sublime Text 3
sublimiter
插件(除了Go之外,我还与其他语言一起使用)。我已经使用
自制
(我在OS X上)下载了Go,并按照这里介绍的步骤进行了操作:用于测试我的安装。我不明白为什么
sublimeLineter
提供的Go语言的linter不起作用。我已经在我的
路径中插入了我的
$GOPATH
,并且
/usr/local/bin/go
。 以下是打印ST控制台的内容:

SublimeLinter: golint activated: /Users/gianmarco/Documents/Dev/Go/bin/golint 
Emmet: No need to update PyV8
SublimeLinter: chdir not set or invalid, using /Users/gianmarco/Documents/Dev/Go/src/github.com/gianmarco/hello 
SublimeLinter: golint: hello.go guessed GOPATH=/Users/gianmarco/Documents/Dev/Go 
SublimeLinter: golint: hello.go ['/Users/gianmarco/Documents/Dev/Go/bin/golint'] 
Package Control: Skipping automatic upgrade, last run at 2015-11-28 11:58:34, next run at 2015-11-28 12:58:34 or after
SublimeLinter: chdir not set or invalid, using /Users/gianmarco/Documents/Dev/Go/src/github.com/gianmarco/hello 
SublimeLinter: golint: hello.go guessed GOPATH=/Users/gianmarco/Documents/Dev/Go 
SublimeLinter: golint: hello.go ['/Users/gianmarco/Documents/Dev/Go/bin/golint'] 
SublimeLinter: chdir not set or invalid, using /Users/gianmarco/Documents/Dev/Go/src/github.com/gianmarco/hello 
SublimeLinter: golint: hello.go guessed GOPATH=/Users/gianmarco/Documents/Dev/Go 
SublimeLinter: golint: hello.go ['/Users/gianmarco/Documents/Dev/Go/bin/golint']

有人有同样的问题?

可能是更好的选择。如果a找不到解决方案,我会检查一下,谢谢!您是否阅读了的所有设置和配置说明?只要在
.bash_profile
中更改
$PATH
或任何地方,都不会更改Sublime(及其插件)看到的
路径。我遵循了与其他Linter相同的步骤,然后我会检查其他设置。