13 lines
138 B
Plaintext
13 lines
138 B
Plaintext
![]() |
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
var i interface{} = "hello"
|
||
|
|
||
|
s := i.(string)
|
||
|
fmt.Println(s)
|
||
|
|
||
|
fmt.Printf("%v- %T\n", s, s)
|
||
|
}
|