MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / NewEncoder

Function NewEncoder

pkg/util/json/json.go:35–37  ·  view source on GitHub ↗

NewEncoder delegates to json.NewEncoder It is only here so this package can be a drop-in for common encoding/json uses

(w io.Writer)

Source from the content-addressed store, hash-verified

33// NewEncoder delegates to json.NewEncoder
34// It is only here so this package can be a drop-in for common encoding/json uses
35func NewEncoder(w io.Writer) *jsoniter.Encoder {
36 return jsoniter.NewEncoder(w)
37}
38
39// NewDecoder delegates to json.NewDecoder
40// It is only here so this package can be a drop-in for common encoding/json uses

Callers 2

timeoutMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected