()
| 39 | } |
| 40 | |
| 41 | func ExampleBorrowEncoder() { |
| 42 | enc := gojay.BorrowEncoder(os.Stdout) |
| 43 | defer enc.Release() |
| 44 | |
| 45 | var str = "gojay" |
| 46 | err := enc.EncodeString(str) |
| 47 | if err != nil { |
| 48 | log.Fatal(err) |
| 49 | } |
| 50 | // Output: |
| 51 | // "gojay" |
| 52 | } |
| 53 | |
| 54 | func ExampleEncoder_EncodeString() { |
| 55 | enc := gojay.BorrowEncoder(os.Stdout) |
nothing calls this directly
no test coverage detected
searching dependent graphs…