MCPcopy Index your code
hub / github.com/subtrace/subtrace / New

Function New

event/event.go:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func New() *Event {
20 return &Event{
21 keys: []string{"time", "event_id"},
22 vals: map[string]string{
23 "time": time.Now().UTC().Format(time.RFC3339Nano),
24 "event_id": uuid.NewString(),
25 },
26 }
27}
28
29func (src *Event) Copy() *Event {
30 dst := New()

Callers 2

NewFunction · 0.92
CopyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected