package storage import ( "log" "mime" ) var newMIMEs = map[string]string{ ".xsl": "text/xsl", ".toml": "application/toml", } func init() { for ext, newType := range newMIMEs { if err := mime.AddExtensionType(ext, newType); err != nil { log.Panicf("could not update mime type %s for extension %s, mime", newType, ext) } } }