Merge commit '62cc3bd465fd234c6d52dcf0cfb2bb5ba57b78c7' into ja
This commit is contained in:
@@ -271,7 +271,7 @@ Let's use an example to see more clearly.
|
|||||||
} else if value, ok := element.(Person); ok {
|
} else if value, ok := element.(Person); ok {
|
||||||
fmt.Printf("list[%d] is a Person and its value is %s\n", index, value)
|
fmt.Printf("list[%d] is a Person and its value is %s\n", index, value)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("list[%d] is of a different type", index)
|
fmt.Printf("list[%d] is of a different type\n", index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user