MCPcopy
hub / github.com/gin-gonic/gin / Data

Struct Data

render/data.go:13–16  ·  view source on GitHub ↗

Data contains ContentType and bytes data.

Source from the content-addressed store, hash-verified

11
12// Data contains ContentType and bytes data.
13type Data struct {
14 ContentType string
15 Data []byte
16}
17
18// Render (Data) writes data with custom ContentType.
19func (r Data) Render(w http.ResponseWriter) (err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected