 The Many Faces of Struct TagsThe Many Faces of Struct Tags Kyle Erf and Sam Helman Why are we here? ● To showcase and explain an underused feature of the language ● To galvanize you to consider struct tags as a potential Priorities []string `stated_priorities` } x := Candidate{} y := VocalCandidate(x) // <-- not allowed Why? ● Attach arbitrary values to your fields ● Provided without a specific use case Namespacing What github.com/mitchellh/mapstructure Library for converting between structs and Go's builtin map. Why? "If you have configuration or an encoding that changes slightly depending on specific fields" In0 码力 | 18 页 | 148.80 KB | 1 年前3 The Many Faces of Struct TagsThe Many Faces of Struct Tags Kyle Erf and Sam Helman Why are we here? ● To showcase and explain an underused feature of the language ● To galvanize you to consider struct tags as a potential Priorities []string `stated_priorities` } x := Candidate{} y := VocalCandidate(x) // <-- not allowed Why? ● Attach arbitrary values to your fields ● Provided without a specific use case Namespacing What github.com/mitchellh/mapstructure Library for converting between structs and Go's builtin map. Why? "If you have configuration or an encoding that changes slightly depending on specific fields" In0 码力 | 18 页 | 148.80 KB | 1 年前3
 多云下的云原生之道multicloud(liugya@cn.ibm.com) Senior Software Engineer - IBM Cloud Private Kubernetes Member Istio Maintainer Why Multicloud As our businesses become ecosystems for delivering greater value in a digital world , a0 码力 | 7 页 | 1.86 MB | 1 年前3 多云下的云原生之道multicloud(liugya@cn.ibm.com) Senior Software Engineer - IBM Cloud Private Kubernetes Member Istio Maintainer Why Multicloud As our businesses become ecosystems for delivering greater value in a digital world , a0 码力 | 7 页 | 1.86 MB | 1 年前3
 25-云原生应用可观测性实践-向阳growing complexity © 2021, YUNSHAN Networks Technology Co., Ltd. All rights reserved. 可观测性 - What & Why 云原生社区可观察性SIG-定义 https://i.cloudnative.to/observability/prologue/definition 阿里可观测性数据引擎的技术实践 https://mp0 码力 | 39 页 | 8.44 MB | 6 月前3 25-云原生应用可观测性实践-向阳growing complexity © 2021, YUNSHAN Networks Technology Co., Ltd. All rights reserved. 可观测性 - What & Why 云原生社区可观察性SIG-定义 https://i.cloudnative.to/observability/prologue/definition 阿里可观测性数据引擎的技术实践 https://mp0 码力 | 39 页 | 8.44 MB | 6 月前3
共 3 条
- 1













