@@ -12,7 +12,6 @@ type AppInfo struct {
1212 Version string `json:"version" yaml:"version"`
1313 Commit string `json:"commit" yaml:"commit"`
1414 Date string `json:"date" yaml:"date"`
15- GoVer string `json:"goVer" yaml:"goVer"`
1615 Compiler string `json:"compiler" yaml:"compiler"`
1716 Platform string `json:"platform" yaml:"platform"`
1817}
@@ -23,19 +22,11 @@ func NewAppInfo() AppInfo {
2322 Version : "devel" ,
2423 Commit : "none" ,
2524 Date : "none" ,
26- GoVer : runtime .Version (),
27- Compiler : runtime .Compiler ,
25+ Compiler : runtime .Version (),
2826 Platform : fmt .Sprintf ("%s/%s" , runtime .GOOS , runtime .GOARCH ),
2927 }
3028}
3129
32- func (r AppInfo ) Array () [][]string {
33- return [][]string {
34- {"Version" , "Commit" , "Date" , "GoVer" , "Compiler" , "Platform" },
35- {r .Version , r .Commit , r .Date , r .GoVer , r .Compiler , r .Platform },
36- }
37- }
38-
3930func (r AppInfo ) String () string {
4031 b := strings.Builder {}
4132 w := tabwriter .NewWriter (& b , 0 , 0 , 2 , ' ' , 0 )
@@ -46,7 +37,6 @@ func (r AppInfo) String() string {
4637 _ , _ = fmt .Fprintf (w , "Version:\t %s\n " , r .Version )
4738 _ , _ = fmt .Fprintf (w , "Commit:\t %s\n " , r .Commit )
4839 _ , _ = fmt .Fprintf (w , "Date:\t %s\n " , r .Date )
49- _ , _ = fmt .Fprintf (w , "GoVer:\t %s\n " , r .GoVer )
5040 _ , _ = fmt .Fprintf (w , "Compiler:\t %s\n " , r .Compiler )
5141 _ , _ = fmt .Fprintf (w , "Platform:\t %s\n " , r .Platform )
5242
0 commit comments