MCPcopy Create free account
hub / github.com/google/uuid / MarshalText

Method MarshalText

null.go:80–86  ·  view source on GitHub ↗

MarshalText implements encoding.TextMarshaler.

()

Source from the content-addressed store, hash-verified

78
79// MarshalText implements encoding.TextMarshaler.
80func (nu NullUUID) MarshalText() ([]byte, error) {
81 if nu.Valid {
82 return nu.UUID.MarshalText()
83 }
84
85 return jsonNull, nil
86}
87
88// UnmarshalText implements encoding.TextUnmarshaler.
89func (nu *NullUUID) UnmarshalText(data []byte) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected