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