(s string)
| 32 | } |
| 33 | |
| 34 | func decodeBinary(s string) ([]byte, error) { |
| 35 | var found bool |
| 36 | if s, found = strings.CutSuffix(s, "="); found { |
| 37 | s = strings.TrimSuffix(s, "=") |
| 38 | } |
| 39 | return binaryEncoding.DecodeString(s) |
| 40 | } |
| 41 | |
| 42 | func encodeEventData(evt events.Event) (string, error) { |
| 43 | pb, err := events.Proto(evt) |
no outgoing calls
no test coverage detected