The Many Faces of Struct TagsRemember the spec? Namespacing isn't there. But it's so useful it's in the official reflect package. Use go vet to catch errors. http://golang.org/pkg/reflect/#StructTag.Get candidate := Candidate{} Age int } Serialization Serializing to and from json Used by the encoding/json package to determine field names when marshaling and unmarshaling structs Other data formats Used for XML, BSON, Command-line Configuration github.com/jessevdk/go-flags What is it? Alternative to Go's builtin flag package. Uses struct tags to specify everything. type DonationOpts struct { Amount int `short:"a"0 码力 | 18 页 | 148.80 KB | 1 年前3
云原生图数据库解谜、容器化实践与 Serverless 应用实操⽇新⽉异的业务模式 Function Lifecycle 新⼀代开源函数计算平台 - 契机 Function Framework ⽤户函数示例 ▲ 函数注册机制 ▶ package userfunction import ( "fmt" "net/http" ) �� HelloWorld writes "Hello, World!" to t func HelloWorld(w functionframeworks.RegisterHTTPFunction(ctx, fnHTTP); err �� nil } ��� } package main import ( ��� userfunction "{{.Package}}" ) func main() { if err �� register(userfunction.{{.Target}}); err �� Data as equivalent/moc │ └── siwi_frontend # Browser End │ ├── README.md │ ├── package.json │ └── src │ ├── App.vue # Listen to user and pass Qs to S │ └──0 码力 | 47 页 | 29.72 MB | 1 年前3
Taming Istio
Configuration with Helma new perspective ● Helm helps automate Istio day-2 tasks ● Helm gitops #IstioCon HELM The package manager for Kubernetes It’s not just for installation anymore! #IstioCon What is Helm? ● Installer yaml Helm Chart Environmental overrides Continuous Integration Continuous Deployment helm package helm template kubectl apply S3 Bucket #IstioCon What we saw ● Looked at the good parts of Helm0 码力 | 19 页 | 867.72 KB | 1 年前3
Helm 及Helm 应用仓库简介李辉— KubeSphere - 云原生实战hello-chart: 渲染 Chart 并输出 • helm install hello hello-chart/ -n default: 安装 hello-chart • helm package hello-chart: 打包 Chart • 将 Chart 推送到应用仓库 _ by QingCloud KubeSphere 应用开发 • 应用生命周期: • 开发中: 开发中的0 码力 | 9 页 | 2.48 MB | 1 年前3
带给你“一份应用需求定义,到处交付”的云原生交付体验• Specification:CPU、Mermory、StorageType (Local/SSD/…)、StorageSize、Network、QPS、… • Provisioning:Package、Image、helm、OpenAPI、… 交付环境 • 公有云: 阿里云、华为云、腾讯云、AWS、… • 专用云:政务、税务、电信、… • 自建机房:VMWare、OpenStack、…ost0 码力 | 16 页 | 30.13 MB | 1 年前3
09-harbor助你玩转云原生-邹佳RVER=https://:4443 制品安全分发-签名 [2] Harbor基于Helm社区支持的GPG实现对Helm V2 chart的签名支持 helm package --sign --key 'my signing key' --keyring path/to/keyring.secret mychart 制品安全分发-扫描 [1] 通过插件化的扫描器 0 码力 | 32 页 | 17.15 MB | 6 月前3
共 6 条
- 1













