diff --git a/3methods/interfaces.go b/3methods/interfaces.go index 9f3153b..dc55fb0 100644 --- a/3methods/interfaces.go +++ b/3methods/interfaces.go @@ -127,7 +127,7 @@ func main() { // f3 := i4.(float64) // panic: interface conversion: interface {} is string, not float64 // fmt.Println(f3) - fmt.Println("\n\n") + fmt.Printf("\n\n") fmt.Println("You can also use interfaces for getting a variable as argument and then deciding type of this variable. var.(type) returns interfaces type. And then you can check different types with switch-case") somevar(61) somevar("hello")