首页 > 技术文章 > golang interface类型转string等其他类型
smallleiit 2019-04-17 16:41 原文
inter 是interface类型,转化为string类型是:
str := inter .(string)
转为其他类型也类似