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