Skip to content

Instantly share code, notes, and snippets.

@fellix
Created September 26, 2015 01:19
Show Gist options
  • Save fellix/0f3b1d030ad7b76ca988 to your computer and use it in GitHub Desktop.
Save fellix/0f3b1d030ad7b76ca988 to your computer and use it in GitHub Desktop.
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
}
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