Skip to content

Commit

Permalink
Merge pull request #2 from inemmanc/develop
Browse files Browse the repository at this point in the history
fix: Recall && add: Scanln_to_exit
  • Loading branch information
inemmanc committed Apr 17, 2024
2 parents b158749 + 06410d6 commit dd94840
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ import (
func main() {
fmt.Println(text.DefaultWelcomeMessage())
controller.SelectMethod()
controller.Recall()
fmt.Println(text.FinalScreenText())
fmt.Scanln()
}
1 change: 0 additions & 1 deletion src/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func SelectMethod() {
fmt.Println("\nINVALID OPERATION")
SelectMethod()
}
Recall()
}

func Recall() {
Expand Down
5 changes: 5 additions & 0 deletions src/text/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ func RecallText() string {
recallText := "\nDo you want to Generate a new Key? Type YES/Y or type any other word to exit"
return recallText
}

func FinalScreenText() string {
finalText := "\nPress enter to quit Genesis Key..."
return finalText
}

0 comments on commit dd94840

Please sign in to comment.