MCPcopy Index your code
hub / github.com/coder/coder / write

Function write

scripts/aibridgepricesgen/main.go:202–209  ·  view source on GitHub ↗
(w io.Writer, rows []priceRow)

Source from the content-addressed store, hash-verified

200}
201
202func write(w io.Writer, rows []priceRow) error {
203 enc := json.NewEncoder(w)
204 enc.SetIndent("", " ")
205 if err := enc.Encode(rows); err != nil {
206 return xerrors.Errorf("encode: %w", err)
207 }
208 return nil
209}

Callers 1

runFunction · 0.70

Calls 2

EncodeMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected