MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / typenameof

Function typenameof

client/internal/cache/base.go:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23)
24
25func typenameof[T any]() string {
26 return reflect.ValueOf((*T)(nil)).Type().String()
27}
28
29var cacheTypesMap = map[string]cacheType{
30 typenameof[Cache](): cacheTypeCache,

Callers 1

base.goFile · 0.85

Calls 2

TypeMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected