Skip to content

Commit 730b5fe

Browse files
committed
Add go version to program version meta tag
1 parent 24a2f44 commit 730b5fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"io"
88
"os"
99
"path/filepath"
10+
"runtime"
1011
"sort"
1112
"strings"
1213
)
@@ -209,6 +210,6 @@ func createMetaTags() []string {
209210
fmt.Sprintf("!_TAG_PROGRAM_AUTHOR\t%s\t/%s/", AuthorName, AuthorEmail),
210211
fmt.Sprintf("!_TAG_PROGRAM_NAME\t%s", Name),
211212
fmt.Sprintf("!_TAG_PROGRAM_URL\t%s", URL),
212-
fmt.Sprintf("!_TAG_PROGRAM_VERSION\t%s", Version),
213+
fmt.Sprintf("!_TAG_PROGRAM_VERSION\t%s\t/%s/", Version, runtime.Version()),
213214
}
214215
}

0 commit comments

Comments
 (0)