MCPcopy Create free account
hub / github.com/francoispqt/gojay / ExampleBorrowEncoder

Function ExampleBorrowEncoder

encode_example_test.go:41–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func 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
54func ExampleEncoder_EncodeString() {
55 enc := gojay.BorrowEncoder(os.Stdout)

Callers

nothing calls this directly

Calls 3

BorrowEncoderFunction · 0.92
EncodeStringMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…