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

Function ExampleEncoder_EncodeString

encode_example_test.go:54–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func ExampleEncoder_EncodeString() {
55 enc := gojay.BorrowEncoder(os.Stdout)
56 defer enc.Release()
57
58 var str = "gojay"
59 err := enc.EncodeString(str)
60 if err != nil {
61 log.Fatal(err)
62 }
63 // Output:
64 // "gojay"
65}

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…