(event string, props TEventProps)
| 193 | } |
| 194 | |
| 195 | func MakeTEvent(event string, props TEventProps) *TEvent { |
| 196 | now := time.Now() |
| 197 | // TsLocal gets set in EnsureTimestamps() |
| 198 | return &TEvent{ |
| 199 | Uuid: uuid.New().String(), |
| 200 | Ts: now.UnixMilli(), |
| 201 | Event: event, |
| 202 | Props: props, |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | func MakeUntypedTEvent(event string, propsMap map[string]any) (*TEvent, error) { |
| 207 | if event == "" { |
no test coverage detected