Files
db-sqlite/identifiable.go
T

22 lines
444 B
Go
Raw Permalink Normal View History

package sqlite
import "runtime/debug"
const modulePath = "code.nochebuena.dev/einherjar/db-sqlite"
func (c *sqliteImpl) ModulePath() string { return modulePath }
func (c *sqliteImpl) 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)"
}