aboutsummaryrefslogtreecommitdiff
path: root/localmessages.go
diff options
context:
space:
mode:
Diffstat (limited to 'localmessages.go')
-rw-r--r--localmessages.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/localmessages.go b/localmessages.go
index 4b18b24..c539ea6 100644
--- a/localmessages.go
+++ b/localmessages.go
@@ -89,3 +89,12 @@ func WriteMessage() {
}
}
}
+
+func TrimMessages() {
+ // Get the number of messages to keep from the user
+ fmt.Println("How many messages do you want to keep?")
+ var keep int
+ fmt.Scanln(&keep)
+ // Trim the messages
+ LocalMessages.Trim(keep)
+}