【1个月读懂filebeat源码】第22天
2021-04-06 00:32:14 By

  • 10.1 tag 的申明
    // 声明一个空结构体
    type cat struct {
        Name string
        // 带有结构体tag的字段
        Type int `json:"type" id:"100"`
    }


© 2016-2021 taluo.ren 版权所有 ICP证:蜀ICP备15023822号-2