MCPcopy
hub / github.com/google/mangle / String

Method String

ast/temporal.go:491–496  ·  view source on GitHub ↗

String returns a string representation of the temporal atom.

()

Source from the content-addressed store, hash-verified

489
490// String returns a string representation of the temporal atom.
491func (ta TemporalAtom) String() string {
492 if ta.Interval == nil || ta.Interval.IsEternal() {
493 return ta.Atom.String()
494 }
495 return ta.Atom.String() + ta.Interval.String()
496}
497
498// DisplayString returns a string representation of the temporal atom using unescaped constants.
499func (ta TemporalAtom) DisplayString() string {

Callers 1

Calls 2

IsEternalMethod · 0.80
StringMethod · 0.65

Tested by 1