Files
yaegi/_test/type7.go
T

14 lines
153 B
Go

package main
import "fmt"
func main() {
var i interface{} = "hello"
if s, ok := i.(string); ok {
fmt.Println(s, ok)
}
}
// Output:
// hello true