Files
cache-valkey/identifiable.go

22 lines
444 B
Go
Raw Normal View History

2026-05-29 15:58:56 +00:00
package cachevalkey
import "runtime/debug"
const modulePath = "code.nochebuena.dev/einherjar/cache-valkey"
func (v *vkImpl) ModulePath() string { return modulePath }
func (v *vkImpl) ModuleVersion() string {
if info, ok := debug.ReadBuildInfo(); ok {
for _, dep := range info.Deps {
if dep.Path == modulePath {
return dep.Version
}
}
if info.Main.Path == modulePath {
return info.Main.Version
}
}
return "(devel)"
}