Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
16
func
NewCache() *Cache {
17
return
&Cache{
18
events: make([]Event, 0),
19
now: time.Now,
20
}
21
}
22
23
type
Event
struct
{
24
Timestamp time.Time
Callers
nothing calls this directly
Calls
1
make
Function · 0.85
Tested by
no test coverage detected