MCPcopy
hub / github.com/segmentio/ksuid / Set

Method Set

ksuid.go:107–109  ·  view source on GitHub ↗

Set satisfies the flag.Value interface, making it possible to use KSUIDs as part of of the command line options of a program.

(s string)

Source from the content-addressed store, hash-verified

105// Set satisfies the flag.Value interface, making it possible to use KSUIDs as
106// part of of the command line options of a program.
107func (i *KSUID) Set(s string) error {
108 return i.UnmarshalText([]byte(s))
109}
110
111func (i KSUID) MarshalText() ([]byte, error) {
112 return []byte(i.String()), nil

Callers

nothing calls this directly

Calls 1

UnmarshalTextMethod · 0.95

Tested by

no test coverage detected