Skip to content

Commit

Permalink
Merge pull request #4 from MeztliRA/add-print-message-function
Browse files Browse the repository at this point in the history
Add PrintMessage() and PrintMessageShort() functions
  • Loading branch information
MeztliRA authored Mar 27, 2021
2 parents af992fd + cb087d9 commit 3d9f062
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions weekdays.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package weekdays

import (
"fmt"
"time"
)

Expand Down Expand Up @@ -46,3 +47,11 @@ func MessageShort() string {
return messageWeekdayShort
}
}

func PrintMessage() {
fmt.Println(Message())
}

func PrintMessageShort() {
fmt.Println(MessageShort())
}

0 comments on commit 3d9f062

Please sign in to comment.