MCPcopy
hub / github.com/benbjohnson/wtf / EncodeDial

Method EncodeDial

csv/dial.go:41–50  ·  view source on GitHub ↗

EncodeDial encodes a dial row to the underlying CSV writer.

(dial *wtf.Dial)

Source from the content-addressed store, hash-verified

39
40// EncodeDial encodes a dial row to the underlying CSV writer.
41func (enc *DialEncoder) EncodeDial(dial *wtf.Dial) error {
42 return enc.w.Write([]string{
43 strconv.Itoa(dial.ID),
44 dial.Name,
45 strconv.Itoa(dial.Value),
46 dial.User.Name,
47 dial.CreatedAt.Format(time.RFC3339),
48 dial.UpdatedAt.Format(time.RFC3339),
49 })
50}

Callers 1

handleDialIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected