05 2024 档案

摘要:switch type的case带多个类型 func Test_switch(t *testing.T) { var cca any = uint8(1) switch vv := cca.(type) { case uint8, uint16: fmt.Println(vv == 1, vv) / 阅读全文
posted @ 2024-05-28 15:14 xiaotushaoxia 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示