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

Method MarshalText

pkg/util/uuid/codec.go:58–60  ·  view source on GitHub ↗

MarshalText implements the encoding.TextMarshaler interface. The encoding is the same as returned by the String() method.

()

Source from the content-addressed store, hash-verified

56// MarshalText implements the encoding.TextMarshaler interface.
57// The encoding is the same as returned by the String() method.
58func (u UUID) MarshalText() ([]byte, error) {
59 return []byte(u.String()), nil
60}
61
62// UnmarshalText implements the encoding.TextUnmarshaler interface.
63// Following formats are supported:

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected