(event string, propsMap map[string]any)
| 204 | } |
| 205 | |
| 206 | func MakeUntypedTEvent(event string, propsMap map[string]any) (*TEvent, error) { |
| 207 | if event == "" { |
| 208 | return nil, fmt.Errorf("event name must be non-empty") |
| 209 | } |
| 210 | var props TEventProps |
| 211 | err := utilfn.ReUnmarshal(&props, propsMap) |
| 212 | if err != nil { |
| 213 | return nil, fmt.Errorf("error re-marshalling TEvent props: %w", err) |
| 214 | } |
| 215 | return MakeTEvent(event, props), nil |
| 216 | } |
| 217 | |
| 218 | func (t *TEvent) EnsureTimestamps() { |
| 219 | if t.Ts == 0 { |
nothing calls this directly
no test coverage detected