Set is the method to set the param value, part of the flag.Value interface. Set's argument is a string to be parsed to set the param. It's a comma-separated list, so we split it.
(value string)
| 359 | // Set's argument is a string to be parsed to set the param. |
| 360 | // It's a comma-separated list, so we split it. |
| 361 | func (s *SString) Set(value string) error { |
| 362 | for _, dt := range strings.Split(value, ",") { |
| 363 | *s = append(*s, dt) |
| 364 | } |
| 365 | return nil |
| 366 | } |
| 367 | |
| 368 | // SliceString defines a multi-value string param with specified name and default value. |
| 369 | // The return value is the address of a SString variable that stores the values of the param. |
nothing calls this directly
no outgoing calls
no test coverage detected