| Conditions | 2 |
| Total Lines | 11 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package app |
||
| 15 | func PrintVersion() { |
||
| 16 | if err := json.NewEncoder(os.Stdout).Encode(struct { |
||
| 17 | Release string |
||
| 18 | BuildDate string |
||
| 19 | GitHash string |
||
| 20 | }{ |
||
| 21 | Release: release, |
||
| 22 | BuildDate: buildDate, |
||
| 23 | GitHash: gitHash, |
||
| 24 | }); err != nil { |
||
| 25 | fmt.Printf("error while decode version info: %v\n", err) |
||
| 26 | } |
||
| 28 |