date.go: change interface