Set the value
(value string)
| 123 | |
| 124 | // Set the value |
| 125 | func (s *ShlexOpt) Set(value string) error { |
| 126 | valueSlice, err := shlex.Split(value) |
| 127 | if err != nil { |
| 128 | return err |
| 129 | } |
| 130 | *s = valueSlice |
| 131 | return nil |
| 132 | } |
| 133 | |
| 134 | // Type returns the type of the value |
| 135 | func (*ShlexOpt) Type() string { |
no outgoing calls