reflect.TypeOf查看数据类型

cooolr 于 2021-04-25 发布
package main

import "fmt"
import "reflect"

func main() {
    text := "hello"
    fmt.Println(reflect.TypeOf(text))
}