code: func FormatFromMediaType(m media.Type) Format {
  	for _, suffix := range m.Suffixes {
  		if f := FormatFromString(suffix); f != "" {
  			return f
  		}
  	}
  
  	return ""
  }
docs: // FormatFromMediaType gets the Format given a MIME type, empty string
  // if unknown.