MCPcopy
hub / github.com/go-chi/chi / EncoderFunc

FuncType EncoderFunc

middleware/compress.go:253–253  ·  view source on GitHub ↗

An EncoderFunc is a function that wraps the provided io.Writer with a streaming compression algorithm and returns it. In case of failure, the function should return nil.

func(w io.Writer, level int) io.Writer

Source from the content-addressed store, hash-verified

251//
252// In case of failure, the function should return nil.
253type EncoderFunc func(w io.Writer, level int) io.Writer
254
255// Interface for types that allow resetting io.Writers.
256type ioResetterWriter interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…