UnmarshalText implements the encoding.TextUnmarshaler interface, so that execution segment sequences can be specified as CLI flags, environment variables, and JSON strings.
(text []byte)
| 358 | // execution segment sequences can be specified as CLI flags, environment |
| 359 | // variables, and JSON strings. |
| 360 | func (ess *ExecutionSegmentSequence) UnmarshalText(text []byte) (err error) { |
| 361 | seq, err := NewExecutionSegmentSequenceFromString(string(text)) |
| 362 | if err != nil { |
| 363 | return err |
| 364 | } |
| 365 | *ess = seq |
| 366 | return nil |
| 367 | } |
| 368 | |
| 369 | // MarshalText implements the encoding.TextMarshaler interface, so is used for |
| 370 | // text and JSON encoding of the execution segment sequences. |
nothing calls this directly
no test coverage detected