Skip to content

Commit 7773b61

Browse files
committed
#3 Fix linter
1 parent 1bcc118 commit 7773b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mimetype_match_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99

1010
func ExampleMimeType_Match() {
1111
// Parse media type
12-
mediaType := "application/json; q=1; param=test;"
12+
mediaType := "application/xml; q=1; param=test;"
1313

1414
mimeType, err := mimeheader.ParseMediaType(mediaType)
1515
if err != nil {
1616
panic(err)
1717
}
1818

1919
// Parse input and match it.
20-
fmt.Println(mimeType.Match(mimeheader.MimeType{Type: "application", Subtype: "json"}))
2120
fmt.Println(mimeType.Match(mimeheader.MimeType{Type: "application", Subtype: "xml"}))
21+
fmt.Println(mimeType.Match(mimeheader.MimeType{Type: "application", Subtype: "json"}))
2222
// Output:
2323
// true
2424
// false

0 commit comments

Comments
 (0)