Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/stirby/temp
/ functions
Functions
10 in github.com/stirby/temp
⨍
Functions
10
◇
Types & classes
5
↓ 1 callers
Function
Clean
Clean blocks forever and removes expires keys from a map with values that adhere to Temporary. Clean panics if m is not a map or slice. Clean makes he
clean.go:15
↓ 1 callers
Function
Expired
Expired checks if a Temporary has expired
temporary.go:17
↓ 1 callers
Method
Expires
()
temporary.go:7
↓ 1 callers
Method
SetExpires
(ti time.Time)
temporary.go:8
Function
ExpireAfter
ExpireAfter sets a T to expire after a duration from now
temporary.go:12
Method
Expires
Expires returns when T expires
t.go:13
Method
SetExpires
SetExpires sets the expire time for a T
t.go:18
Function
TestClean
(t *testing.T)
clean_test.go:14
Function
TestMain
(m *testing.M)
temporary_test.go:19
Function
main
()
example/main.go:15