Compare commits
1 Commits
master
...
36698933d7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36698933d7 |
@@ -63,11 +63,10 @@ func ExampleMime_jsonMarshal() {
|
|||||||
Mime: mime.TextMarkdown,
|
Mime: mime.TextMarkdown,
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := json.Marshal(res)
|
result, _ := json.Marshal(res)
|
||||||
|
|
||||||
fmt.Printf("%s\n%v", result, err)
|
fmt.Printf("%s", result)
|
||||||
|
|
||||||
// Output:
|
// Output:
|
||||||
// {"data":"some text","mime":"text/markdown"}
|
// {"data":"some text","mime":"text/markdown"}
|
||||||
// <nil>
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user