Skip to content

Commit

Permalink
First revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Olve Sæther Hansen committed Nov 25, 2016
1 parent d0bcf79 commit 1cfcfa8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions paydaybeer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package main

import (
"fmt"
"time"
)

func main() {

//endOfMonth := now.EndOfMonth()
date := time.Now()
isPaydayWeek := (25 - date.Day()) < 7
isFriday := date.Weekday() == time.Friday


if (isPaydayWeek && isFriday){
fmt.Println("Yesss! 🍺 it is Pay 🍹 Day 🍸 Beer! 🍻")
} else {
fmt.Println("Back 😰to work... 👷🏼")
}

}

0 comments on commit 1cfcfa8

Please sign in to comment.