From 1597f6539d18c7212c5ccb4ddb9da22f7cc27f7a Mon Sep 17 00:00:00 2001 From: asandikci Date: Mon, 24 Jul 2023 14:39:38 +0300 Subject: [PATCH] fix(mini): println warning --- 3methods/interfaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")