Closed Antonboom closed 2 years ago
Hello!
package main import "fmt" func main() { var i interface{} = 100 i = "100" switch i.(type) { case int: fmt.Println("int") default: fmt.Println("not int") } }
$ ineffassign main.go /Users/anthony/main.go:6:6: ineffectual assignment to i
I'm sorry. I didn’t notice which line the linter was pointing to.
Thank u for linter!
Hello!