main
FormatFromContentType
func FormatFromContentType(contentType string, fallback ...Format) (Format, error) { if len(contentType) == 0 { if len(fallback) > 0 { return fallback[0], nil }