Call dynamic types' interface method in golang

前端 未结 0 1945
广开言路
广开言路 2021-02-14 19:29

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

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


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