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的解决办法...)