()
| 80 | } |
| 81 | |
| 82 | func versionString() string { |
| 83 | s := fmt.Sprintf("open-code-review %s", Version) |
| 84 | if GitCommit != "" { |
| 85 | s += fmt.Sprintf(" (%s)", GitCommit) |
| 86 | } |
| 87 | s += fmt.Sprintf(" %s/%s\n", runtime.GOOS, runtime.GOARCH) |
| 88 | if BuildDate != "" { |
| 89 | s += fmt.Sprintf("built at: %s\n", BuildDate) |
| 90 | } |
| 91 | s += "https://github.com/alibaba/open-code-review\n" |
| 92 | return s |
| 93 | } |