相关疑难解决方法(0)

在函数名称之前使用下划线来转换struct标记

我正在使用go,特别是QT绑定.但是我不明白在下面的结构中使用前导下划线.我知道一般使用下划线但不是这个具体的例子.

type CustomLabel struct {
    core.QObject

    _ func() `constructor:"init"`
    _ string `property:"text"`
}
Run Code Online (Sandbox Code Playgroud)

它与struct标签有关吗?

struct naming-conventions go

12
推荐指数
2
解决办法
674
查看次数

标签 统计

go ×1

naming-conventions ×1

struct ×1