草庐IT

cameraids

全部标签

go - 毒蛇的正确类型是什么

我有以下yaml文件并想遍历cameraids。------profiles:HDready:'-vcodeclibx264-pix_fmtyuv420p-crf23-s1280x720'mobile:'-vcodeclibx264-pix_fmtyuv420p-crf23-s480x270'cameraids:111:fps:30191:fps:50851:fps:50我现在想遍历cameraids和配置文件,因此我像这样声明cameraids的变量varcamids映射[字符串]接口(interface){}与fmt.Println(reflect.TypeOf(viper.Get