()
| 27 | } |
| 28 | |
| 29 | func ExampleNewEncoder() { |
| 30 | enc := gojay.BorrowEncoder(os.Stdout) |
| 31 | |
| 32 | var str = "gojay" |
| 33 | err := enc.EncodeString(str) |
| 34 | if err != nil { |
| 35 | log.Fatal(err) |
| 36 | } |
| 37 | // Output: |
| 38 | // "gojay" |
| 39 | } |
| 40 | |
| 41 | func ExampleBorrowEncoder() { |
| 42 | enc := gojay.BorrowEncoder(os.Stdout) |
nothing calls this directly
no test coverage detected
searching dependent graphs…