how to use underscore in golang for variable initialization

后端 未结 0 420
野的像风
野的像风 2021-01-20 18:24

What does the below code do?

Is it like creating a singleton or static variable declaration.

var _ sdk.Msg = &MsgCreateIdentifier{}

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