MustNewSegmentDecoder creates a new encoding or it panics
(dataEncoding string)
| 45 | |
| 46 | // MustNewSegmentDecoder creates a new encoding or it panics |
| 47 | func MustNewSegmentDecoder(dataEncoding string) SegmentDecoder { |
| 48 | decoder, err := NewSegmentDecoder(dataEncoding) |
| 49 | if err != nil { |
| 50 | panic(err) |
| 51 | } |
| 52 | |
| 53 | return decoder |
| 54 | } |