This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Yujin struct { lastCoffeeAt time.Time } | |
| func (y *Yujin) IsProductive() bool { | |
| return time.Since(y.lastCoffeeAt) < (time.Hour * 3) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def testFunction(number): | |
| if number < 0: | |
| return "number is negative" | |
| else: | |
| return "number is positive" | |
| return "wat?" |