MCPcopy
hub / github.com/TomWright/dasel / Write

Method Write

parsing/writer.go:30–30  ·  view source on GitHub ↗

Write writes a value to a byte slice.

(*model.Value)

Source from the content-addressed store, hash-verified

28type Writer interface {
29 // Write writes a value to a byte slice.
30 Write(*model.Value) ([]byte, error)
31}
32
33// NewWriterFn is a function that creates a new writer.

Callers 15

runFunction · 0.95
TestIniFunction · 0.95
TestTomlWriter_MoreCasesFunction · 0.95
TestTomlWriter_CompactFunction · 0.95
TestXmlReader_ReadFunction · 0.95
TestXmlWriter_CompactFunction · 0.95

Implementers 9

multiDocumentWriterparsing/writer.go
kdlWriterparsing/kdl/kdl_writer.go
iniWriterparsing/ini/ini_writer.go
tomlWriterparsing/toml/toml_writer.go
xmlWriterparsing/xml/writer.go
hclWriterparsing/hcl/writer.go
yamlWriterparsing/yaml/yaml_writer.go
jsonWriterparsing/json/json_writer.go
csvWriterparsing/csv/writer.go

Calls

no outgoing calls

Tested by 15

TestIniFunction · 0.76
TestTomlWriter_MoreCasesFunction · 0.76
TestTomlWriter_CompactFunction · 0.76
TestXmlReader_ReadFunction · 0.76
TestXmlWriter_CompactFunction · 0.76
TestXmlReader_WriteFunction · 0.76