github.com/switchupcb/yaegi@v0.10.2/_test/type1.go (about) 1 package main 2 3 import "fmt" 4 5 func main() { 6 var i interface{} = "hello" 7 s := i.(string) 8 fmt.Println(s) 9 } 10 11 // Output: 12 // hello