MCPcopy Create free account
hub / github.com/dolthub/doltgresql / FromString

Function FromString

postgres/parser/uuid/codec.go:59–63  ·  view source on GitHub ↗

FromString returns a UUID parsed from the input string. Input is expected in a form accepted by UnmarshalText.

(input string)

Source from the content-addressed store, hash-verified

57// FromString returns a UUID parsed from the input string.
58// Input is expected in a form accepted by UnmarshalText.
59func FromString(input string) (UUID, error) {
60 u := UUID{}
61 err := u.UnmarshalText([]byte(input))
62 return u, err
63}
64
65// FromStringOrNil returns a UUID parsed from the input string.
66// Same behavior as FromString(), but returns uuid.Nil instead of an error.

Callers 5

ParseDUuidFromStringFunction · 0.92
uuid.goFile · 0.92
UnmarshalJSONMethod · 0.70
FromStringOrNilFunction · 0.70
uuid.goFile · 0.70

Calls 1

UnmarshalTextMethod · 0.95

Tested by

no test coverage detected