ICode9

精准搜索请尝试: 精确搜索
  • Go-反射2022-06-11 10:32:31

    反射的示意图 案例1 package main import ( "fmt" "reflect" ) func reflectTest01(b interface{}) { //通过反射获取传入变量的type kind value rTyp := reflect.TypeOf(b) fmt.Println("rTye=", rTyp) rVal := reflect.ValueOf(b) fmt.Printf("r

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有