Call dynamic types' interface method

后端 未结 0 1326
被撕碎了的回忆
被撕碎了的回忆 2021-02-14 19:40

I\'m trying to write a common module using Go interface. It results in an error:

panic: interface conversion: interface {} is main.AmazonOrder, not main.OrderMapp         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题