Documentation ¶
Overview ¶
Example (VersionInfo_json) ¶
display.Print(&respVersionInfo{ Info: &versionInfo{ Version: "0.0.0", GitCommit: "00000000", BuildTime: "0001-01-01T00:00:00Z", APIVersion: "0.0.0", GoVersion: "unknown", Os: "unknown", Arch: "unknown", }, }, nil, "json")
Output: { "result": { "version": "0.0.0", "git_commit": "00000000", "build_time": "0001-01-01T00:00:00Z", "api_version": "0.0.0", "go_version": "unknown", "os": "unknown", "arch": "unknown" }, "error": "" }
Example (VersionInfo_text) ¶
display.Print(&respVersionInfo{ Info: &versionInfo{ Version: "0.0.0", GitCommit: "00000000", BuildTime: "0001-01-01T00:00:00Z", APIVersion: "0.0.0", GoVersion: "unknown", Os: "unknown", Arch: "unknown", }, }, nil, "text") //display.PrettyPrint(msg, "text")
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVersionCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.