We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following won't compile: package main i mport(
) func main() { x:=-500 println(x< -100) }
However, if you add a space, it works: package main import(
) func main() { x:=-500 println(x< -100) } I'm getting the following compile error: .\q.go:7:11: syntax error: unexpected <-, expecting comma or )
The text was updated successfully, but these errors were encountered:
In Go, <- is an operator. See https://golang.org/ref/spec#Operators_and_punctuation. See https://golang.org/wiki/Questions for questions in the future.
<-
Sorry, something went wrong.
Can it be implemented for ints then so it acts normally?
<- is an opeartor for channels, not integers: https://golang.org/ref/spec#Channel_types
No branches or pull requests
The following won't compile:
package main
i mport(
)
func main() {
x:=-500
println(x< -100)
}
However, if you add a space, it works:
package main
import(
)
func main() {
x:=-500
println(x< -100)
}
I'm getting the following compile error:
.\q.go:7:11: syntax error: unexpected <-, expecting comma or )
The text was updated successfully, but these errors were encountered: