@@ -20,15 +20,25 @@ package version
20
20
// TODO: Add []string of api versions supported? It's still unclear
21
21
// how we'll want to distribute that information.
22
22
type Info struct {
23
- Major string `json:"major"`
24
- Minor string `json:"minor"`
25
- GitVersion string `json:"gitVersion"`
26
- GitCommit string `json:"gitCommit"`
27
- GitTreeState string `json:"gitTreeState"`
28
- BuildDate string `json:"buildDate"`
29
- GoVersion string `json:"goVersion"`
30
- Compiler string `json:"compiler"`
31
- Platform string `json:"platform"`
23
+ // Major is the major version of the binary version
24
+ Major string `json:"major"`
25
+ // Minor is the minor version of the binary version
26
+ Minor string `json:"minor"`
27
+ // EmulationMajor is the major version of the emulation version
28
+ EmulationMajor string `json:"emulationMajor,omitempty"`
29
+ // EmulationMinor is the minor version of the emulation version
30
+ EmulationMinor string `json:"emulationMinor,omitempty"`
31
+ // MinCompatibilityMajor is the major version of the minimum compatibility version
32
+ MinCompatibilityMajor string `json:"minCompatibilityMajor,omitempty"`
33
+ // MinCompatibilityMinor is the minor version of the minimum compatibility version
34
+ MinCompatibilityMinor string `json:"minCompatibilityMinor,omitempty"`
35
+ GitVersion string `json:"gitVersion"`
36
+ GitCommit string `json:"gitCommit"`
37
+ GitTreeState string `json:"gitTreeState"`
38
+ BuildDate string `json:"buildDate"`
39
+ GoVersion string `json:"goVersion"`
40
+ Compiler string `json:"compiler"`
41
+ Platform string `json:"platform"`
32
42
}
33
43
34
44
// String returns info as a human-friendly version string.
0 commit comments