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