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)
| 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. |
| 107 | func (i *KSUID) Set(s string) error { |
| 108 | return i.UnmarshalText([]byte(s)) |
| 109 | } |
| 110 | |
| 111 | func (i KSUID) MarshalText() ([]byte, error) { |
| 112 | return []byte(i.String()), nil |
nothing calls this directly
no test coverage detected