package minio import "runtime/debug" const modulePath = "code.nochebuena.dev/einherjar/storage-minio" func (m *minioImpl) ModulePath() string { return modulePath } func (m *minioImpl) 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)" }