go test :Wrong test signature

err: Wrong test signature

写测试函数出了个错,找半天才找到原因;虽然很愚蠢,还是记录下。

是因为 参数没加*导致的。

猜你喜欢

转载自www.cnblogs.com/mingbai/p/gotesterr.html
今日推荐