[英]Go compile error?
I'm trying to compile a fork of cuttle that merges this pull request 我正在尝试编译合并此拉取请求 的乌贼叉
by running 通过运行
# GOPATH=`pwd` /usr/local/go/bin/go get github.com/andresdouglas/cuttle
# github.com/andresdouglas/cuttle
src/github.com/andresdouglas/cuttle/main.go:103: zone.GetController(r.URL.Host, r.URL.Path).Acquire() used as value
Here is the offending line 这是违规行
I have no experience with Go. 我没有使用Go的经验。 Is that an error? 那是错误吗? It doesn't seem to update the compiled binary. 它似乎没有更新已编译的二进制文件。
Check the source code here : 在此处检查源代码:
// Acquire permission from NoopControl.
// Permission is granted immediately since it does not perform any rate limit.
func (c *NoopControl) Acquire() {
log.Debugf("NoopControl[%s]: Seeking permission.", c.Label)
log.Debugf("NoopControl[%s]: Granted permission.", c.Label)
}
There is NO return value of func (c *NoopControl) Acquire()
. 没有func (c *NoopControl) Acquire()
返回值 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.