feat: expose version identity in Go SDK

This commit is contained in:
2026-09-20 18:29:18 +08:00
parent 5622a9e2f2
commit af10086570
6 changed files with 62 additions and 4 deletions

View File

@@ -29,5 +29,9 @@ func main() {
if err != nil {
log.Fatal(err)
}
fmt.Printf("liveness=%s readiness=%s scope=%s\n", live.Status, ready.Status, ready.Scope)
version, err := client.Version(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Printf("liveness=%s readiness=%s scope=%s version=%s revision=%s\n", live.Status, ready.Status, ready.Scope, version.Version, version.Revision)
}