From 6c75aed58ed4b162640b285396233e6f2aa6e5a0 Mon Sep 17 00:00:00 2001 From: jasonBirchall Date: Wed, 13 Jan 2021 17:54:50 +0000 Subject: [PATCH] Add prefix to coin value for clarity --- cmd/track.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/track.go b/cmd/track.go index 208d5dc..9c5fe46 100644 --- a/cmd/track.go +++ b/cmd/track.go @@ -20,6 +20,7 @@ import ( "log" "math" "strconv" + "strings" api "github.com/jasonbirchall/crypto-tracker/internal/api" "github.com/m7shapan/njson" @@ -44,7 +45,7 @@ var trackCmd = &cobra.Command{ return err } - fmt.Print(price) + fmt.Print(strings.ToUpper(v)+" ", price) } return nil