File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ func (gb *GoBrew) Interactive(ask bool) {
160
160
fmt .Println (" Please consider updating your go.mod file" )
161
161
c := true
162
162
if ask {
163
- 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)?" )
164
164
}
165
165
if c {
166
166
gb .Use (modVersion + "@latest" )
@@ -169,10 +169,10 @@ func (gb *GoBrew) Interactive(ask bool) {
169
169
}
170
170
171
171
if currentVersion != latestVersion {
172
- 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 )
173
173
c := true
174
174
if ask {
175
- 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 + ")?" )
176
176
}
177
177
if c {
178
178
gb .Use (latestVersion )
Original file line number Diff line number Diff line change @@ -503,8 +503,8 @@ func askForConfirmation(s string) bool {
503
503
reader := bufio .NewReader (os .Stdin )
504
504
505
505
for {
506
- fmt . Printf ( "%s " , s )
507
- color . Successf ( " [y/n]: " )
506
+ color . Successf ( s )
507
+ fmt . Print ( " [y/n]: " )
508
508
509
509
response , err := reader .ReadString ('\n' )
510
510
if err != nil {
You can’t perform that action at this time.
0 commit comments