()
| 46 | } |
| 47 | |
| 48 | func versionString() string { |
| 49 | s := fmt.Sprintf("open-code-review %s", Version) |
| 50 | if GitCommit != "" { |
| 51 | s += fmt.Sprintf(" (%s)", GitCommit) |
| 52 | } |
| 53 | s += fmt.Sprintf(" %s/%s\n", runtime.GOOS, runtime.GOARCH) |
| 54 | if BuildDate != "" { |
| 55 | s += fmt.Sprintf("built at: %s\n", BuildDate) |
| 56 | } |
| 57 | s += "https://github.com/alibaba/open-code-review\n" |
| 58 | return s |
| 59 | } |