go-learning/tour_of_go/l5/3

13 lines
138 B
Plaintext
Raw Permalink Normal View History

2025-08-31 16:38:50 +00:00
package main
import "fmt"
func main() {
var i interface{} = "hello"
s := i.(string)
fmt.Println(s)
fmt.Printf("%v- %T\n", s, s)
}