Created
September 26, 2015 01:19
-
-
Save fellix/0f3b1d030ad7b76ca988 to your computer and use it in GitHub Desktop.
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
package main | |
import ( | |
"time" | |
"entities" | |
) | |
func main() { | |
d := time.Date(2008, time.November, 10, 23, 0, 0, 0, time.UTC) | |
entities.ageFromNow(d) // compiling error | |
} |
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
package entities | |
import "time" | |
func ageFromNow(birthDate *time.Date) { | |
// code goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment