package templates import ( "path/filepath" "strings" "time" ) func currentYear() string { return time.Now().Format("2006") } func videoMIME(filename string) string { switch strings.ToLower(filepath.Ext(filename)) { case ".webm": return "video/webm" case ".mov": return "video/quicktime" default: return "video/mp4" } }