MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Format

Method Format

pkg/util/duration/duration.go:376–378  ·  view source on GitHub ↗

Format emits a string representation of a Duration to a Buffer truncated to microseconds.

(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

374
375// Format emits a string representation of a Duration to a Buffer truncated to microseconds.
376func (d Duration) Format(buf *bytes.Buffer) {
377 d.FormatWithStyle(buf, IntervalStyle_POSTGRES)
378}
379
380// FormatWithStyle emits a string representation of a Duration to a Buffer
381// truncated to microseconds with a given style.

Callers 1

StringMethod · 0.95

Calls 1

FormatWithStyleMethod · 0.95

Tested by

no test coverage detected