fix(mini): println warning
This commit is contained in:
parent
834dbb82c4
commit
1597f6539d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue