类型断言的最佳实践
摘要:
Golang语言中的类型断言的最佳实践 利用函数typejudge 来判断传入的实参是什么类型,并打印出它的类型及数值 终端显示结果: GOLANG语言的运行报错 duplicate case bool in type switch previous case at .\main.go:14:4 原 阅读全文
posted @ 2019-05-09 14:55 欧小白 阅读(228) 评论(0) 推荐(0)
posted @ 2019-05-09 14:55 欧小白 阅读(228) 评论(0) 推荐(0)
posted @ 2019-05-09 10:31 欧小白 阅读(568) 评论(0) 推荐(0)