versionInfo wraps the stuff we get from buildinfo so that it's easier to emit in different formats.
| 14 | // versionInfo wraps the stuff we get from buildinfo so that it's |
| 15 | // easier to emit in different formats. |
| 16 | type versionInfo struct { |
| 17 | Version string `json:"version"` |
| 18 | BuildTime time.Time `json:"build_time"` |
| 19 | ExternalURL string `json:"external_url"` |
| 20 | Slim bool `json:"slim"` |
| 21 | AGPL bool `json:"agpl"` |
| 22 | BoringCrypto bool `json:"boring_crypto"` |
| 23 | } |
| 24 | |
| 25 | // String() implements Stringer |
| 26 | func (vi versionInfo) String() string { |