MCPcopy
hub / github.com/gopherdata/gophernotes / MakeData

Function MakeData

display.go:366–376  ·  view source on GitHub ↗
(mimeType string, data interface{})

Source from the content-addressed store, hash-verified

364}
365
366func MakeData(mimeType string, data interface{}) Data {
367 d := Data{
368 Data: MIMEMap{
369 mimeType: data,
370 },
371 }
372 if mimeType != MIMETypeText {
373 d.Data[MIMETypeText] = fmt.Sprint(data)
374 }
375 return d
376}
377
378func MakeData3(mimeType string, plaintext string, data interface{}) Data {
379 return Data{

Callers 9

autoRenderResultsMethod · 0.85
HTMLFunction · 0.85
JavaScriptFunction · 0.85
JPEGFunction · 0.85
JSONFunction · 0.85
MarkdownFunction · 0.85
PDFFunction · 0.85
PNGFunction · 0.85
SVGFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected