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

Interface Writer

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

Writer writes a value to a byte slice.

Source from the content-addressed store, hash-verified

26
27// Writer writes a value to a byte slice.
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.
34type NewWriterFn func(options WriterOptions) (Writer, error)

Callers 8

runFunction · 0.95
TestIniFunction · 0.95
TestTomlWriter_MoreCasesFunction · 0.95
TestTomlWriter_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

no test coverage detected