Move function matches from entry.go to entries.go