Golang Unit Tests Panic When Returning Dereferenced Struct Attribute rather than Struct

后端 未结 0 1606
攒了一身酷
攒了一身酷 2021-01-18 09:08

How does one go about testing a function that is returning a struct attribute that is of type string or number, rather than the struct itself?

I am trying to test the

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