@@ -114,31 +114,33 @@ func (gb *GoBrew) Interactive(ask bool) {
114114 fmt .Println ()
115115
116116 if currentVersion == NoneVersion {
117- color .Warnln ("GO Installed Version" , "......." , currentVersion )
117+ color .Warnln ("🚨 Installed Version" , "......." , currentVersion , "⚠️" )
118118 } else {
119119 var labels []string
120120 if modVersion != NoneVersion && currentMajorVersion != modVersion {
121- labels = append (labels , "not same as go.mod" )
121+ labels = append (labels , "🔄 not same as go.mod" )
122122 }
123123 if currentVersion != latestVersion {
124- labels = append (labels , "not latest" )
124+ labels = append (labels , "⬆️ not latest" )
125125 }
126126 label := ""
127127 if len (labels ) > 0 {
128- label = "(" + strings .Join (labels , ", " ) + ")"
129128 label = " " + color .FgRed .Render (label )
130129 }
131- color .Successln ("GO Installed Version" , "......." , currentVersion + label )
130+ if currentVersion != latestVersion {
131+ color .Successln ("✅ Installed Version" , "......." , currentVersion + label , "\t 🌟" , latestVersion , "available" )
132+ } else {
133+ color .Successln ("✅ Installed Version" , "......." , currentVersion + label , "\t 🎉" , "on latest" )
134+ }
132135 }
133136
134137 if modVersion != NoneVersion && latestMajorVersion != modVersion {
135- label := " " + color .FgYellow .Render ("( not latest) " )
136- color .Successln ("GO go.mod Version" , " ......." , modVersion + label )
138+ label := " " + color .FgYellow .Render ("\t ⚠️ not latest" )
139+ color .Successln ("📄 go.mod Version" , " ......." , modVersion + label )
137140 } else {
138- color .Successln ("GO go.mod Version" , " ......." , modVersion )
141+ color .Successln ("📄 go.mod Version" , " ......." , modVersion )
139142 }
140143
141- color .Successln ("GO Latest Version" , " ......." , latestVersion )
142144 fmt .Println ()
143145
144146 if currentVersion == NoneVersion {
@@ -154,10 +156,11 @@ func (gb *GoBrew) Interactive(ask bool) {
154156 }
155157
156158 if modVersion != NoneVersion && currentMajorVersion != modVersion {
157- color .Warnf ("GO Installed Version (%s) and go.mod Version (%s) are different.\n " , currentMajorVersion , modVersion )
159+ color .Warnf ("⚠️ GO Installed Version (%s) and go.mod Version (%s) are different.\n " , currentMajorVersion , modVersion )
160+ fmt .Println (" Please consider updating your go.mod file" )
158161 c := true
159162 if ask {
160- c = askForConfirmation ("Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?" )
163+ c = askForConfirmation ("🤔 Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?" )
161164 }
162165 if c {
163166 gb .Use (modVersion + "@latest" )
@@ -166,10 +169,10 @@ func (gb *GoBrew) Interactive(ask bool) {
166169 }
167170
168171 if currentVersion != latestVersion {
169- color .Warnf ("GO Installed Version (%s) and GO Latest Version (%s) are different.\n " , currentVersion , latestVersion )
172+ color .Warnf ("⚠️ GO Installed Version (%s) and GO Latest Version (%s) are different.\n " , currentVersion , latestVersion )
170173 c := true
171174 if ask {
172- c = askForConfirmation ("Do you want to update GO to latest version (" + latestVersion + ")?" )
175+ c = askForConfirmation ("🤔 Do you want to update GO to latest version (" + latestVersion + ")?" )
173176 }
174177 if c {
175178 gb .Use (latestVersion )
@@ -272,16 +275,16 @@ func (gb *GoBrew) ListVersions() {
272275}
273276
274277// ListRemoteVersions that are installed by dir ls
275- func (gb * GoBrew ) ListRemoteVersions (print bool ) map [string ][]string {
276- if print {
278+ func (gb * GoBrew ) ListRemoteVersions (shouldPrint bool ) map [string ][]string {
279+ if shouldPrint {
277280 color .Infoln ("==> [Info] Fetching remote versions" )
278281 }
279282 tags := gb .getGolangVersions ()
280283
281284 var versions []string
282285 versions = append (versions , tags ... )
283286
284- return gb .getGroupedVersion (versions , print )
287+ return gb .getGroupedVersion (versions , shouldPrint )
285288}
286289
287290// CurrentVersion get current version from symb link
0 commit comments