Go语言中cannot convert adminname (type interface {}) to type *: need type assertion的解决办法...
生活随笔
收集整理的這篇文章主要介紹了
Go语言中cannot convert adminname (type interface {}) to type *: need type assertion的解决办法...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
解決的辦法是把string(adminname)替換為adminname.(string)。其它類型也是類似。
轉載于:https://www.cnblogs.com/huanhang/p/8352707.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的Go语言中cannot convert adminname (type interface {}) to type *: need type assertion的解决办法...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 梦到自己生了小孩在喂母乳什么意思
- 下一篇: 梦到死去的人是什么预兆