关于init的使用 #101
fanhousanbu
started this conversation in
Show and tell
关于init的使用
#101
Replies: 1 comment 1 reply
-
我的意见是:不要使用init |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
#95 由于init导致的单测失败
@sampsonye 提供了一个思路,参考 The promblems of Golang init function
关于文章的结论:不要用init
我们是否需要考虑这件事;
目前的解决方案,文章中也提供了,即在init中判断执行命令是否带-test,稍后我会调整pr以使internal里的单测能顺利执行
Beta Was this translation helpful? Give feedback.
All reactions