我正在使用go,特别是QT绑定.但是我不明白在下面的结构中使用前导下划线.我知道一般使用下划线但不是这个具体的例子.
type CustomLabel struct { core.QObject _ func() `constructor:"init"` _ string `property:"text"` }
它与struct标签有关吗?
struct naming-conventions go
go ×1
naming-conventions ×1
struct ×1