summaryrefslogtreecommitdiff
path: root/internal/version/version.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-09 21:10:29 +0300
committerPaul Buetow <paul@buetow.org>2021-10-10 13:36:41 +0300
commit97747ea0f3178f7f5890512d483fdccaa82846b0 (patch)
tree9ff1335ca26afc90e55fd6de416457e252d75a35 /internal/version/version.go
parent7a7169791a64190e1002e38bc9c04ad0d5c1ce1f (diff)
vetting and linting and some code restyling
Diffstat (limited to 'internal/version/version.go')
-rw-r--r--internal/version/version.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/version/version.go b/internal/version/version.go
index 4ff6eae..68b9e6e 100644
--- a/internal/version/version.go
+++ b/internal/version/version.go
@@ -20,7 +20,8 @@ const (
// String representation of the DTail version.
func String() string {
- return fmt.Sprintf("%s %v Protocol %s %s", Name, Version, protocol.ProtocolCompat, Additional)
+ return fmt.Sprintf("%s %v Protocol %s %s", Name, Version,
+ protocol.ProtocolCompat, Additional)
}
// PaintedString is a prettier string representation of the DTail version.
@@ -31,13 +32,10 @@ func PaintedString() string {
name := color.PaintStrWithAttr(fmt.Sprintf(" %s ", Name),
color.FgYellow, color.BgBlue, color.AttrBold)
-
version := color.PaintStrWithAttr(fmt.Sprintf(" %s ", Version),
color.FgBlue, color.BgYellow, color.AttrBold)
-
protocol := color.PaintStr(fmt.Sprintf(" Protocol %s ", protocol.ProtocolCompat),
color.FgBlack, color.BgGreen)
-
additional := color.PaintStrWithAttr(fmt.Sprintf(" %s ", Additional),
color.FgWhite, color.BgMagenta, color.AttrUnderline)