MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / String

Method String

pkg/util/duration/duration.go:350–354  ·  view source on GitHub ↗

String returns a string representation of a Duration.

()

Source from the content-addressed store, hash-verified

348
349// String returns a string representation of a Duration.
350func (d Duration) String() string {
351 var buf bytes.Buffer
352 d.Format(&buf)
353 return buf.String()
354}
355
356// StringNanos returns a string representation of a Duration including
357// its hidden nanoseconds value. To be used only by the encoding/decoding

Callers 1

prettyPrintFirstValueFunction · 0.95

Calls 2

FormatMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected