MCPcopy Create free account
hub / github.com/go-json-experiment/json / ExampleWithMarshalers_errors

Function ExampleWithMarshalers_errors

example_test.go:416–461  ·  view source on GitHub ↗

Many error types are not serializable since they tend to be Go structs without any exported fields (e.g., errors constructed with [errors.New]). Some applications, may desire to marshal an error as a JSON string even if these errors cannot be unmarshaled.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 9

MarshalFunction · 0.92
WithMarshalersFunction · 0.92
JoinMarshalersFunction · 0.92
MarshalToFuncFunction · 0.92
StringFunction · 0.92
MarshalFuncFunction · 0.92
MultilineFunction · 0.92
WriteTokenMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…