MCPcopy Create free account
hub / github.com/efogdev/mpris-timer / InitCache

Function InitCache

internal/core/image.go:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31)
32
33func InitCache() {
34 walk(CacheDir)
35
36 cacheMu.Lock()
37 cacheLoaded = true
38 cacheMu.Unlock()
39
40 pngCacheMu.Lock()
41 pngCacheLoaded = true
42 pngCacheMu.Unlock()
43}
44
45func MakeProgressCircle(progress float64) (string, error) {
46 progress = math.Max(0, math.Min(100, progress))

Callers 1

mainFunction · 0.92

Calls 1

walkFunction · 0.85

Tested by

no test coverage detected