You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm currently reading the Learning Go book and I came across the Shadowing variables section where it's mentioned that the go tool shadow does not catch shadowing predefined identifiers. I wanted to know why it was not implemented and if that's something planned, how can I help :slight_smile:
Here's a simple example
package main
import"fmt"funcmain() {
fmt.Println(true)
true:="hey"fmt.Println(true)
}
$ go run main.go
true
hey // "true" identifier shadowed!
$ shadow main.go
// no errors detected :(
The text was updated successfully, but these errors were encountered:
gopherbot
added
the
Tools
This label describes issues relating to any tools in the x/tools repository.
label
Nov 21, 2022
Hi, I'm currently reading the
Learning Go
book and I came across theShadowing variables
section where it's mentioned that the go toolshadow
does not catch shadowing predefined identifiers. I wanted to know why it was not implemented and if that's something planned, how can I help :slight_smile:Here's a simple example
The text was updated successfully, but these errors were encountered: