Posts by harakirisekaini • 1 point
1 post
-
-1
votes1
answer68
viewsQ: black hat book go/ variable not used in golang
func foo(i interface{}) { switch v := i.(type) { case int: fmt.Println("I'm an integer!") case string: fmt.Println("I'm a string!") default: fmt.Println("Unknown type!") } } I researched this…
golangasked harakirisekaini 1