MCPcopy
hub / github.com/teivah/100-go-mistakes / NewCache

Function NewCache

src/11-testing/87-time-api/listing2/main.go:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func NewCache() *Cache {
17 return &Cache{
18 events: make([]Event, 0),
19 now: time.Now,
20 }
21}
22
23type Event struct {
24 Timestamp time.Time

Callers

nothing calls this directly

Calls 1

makeFunction · 0.85

Tested by

no test coverage detected