delve/version/version.go

22 lines
467 B
Go
Raw Normal View History

package version
import "fmt"
// Version represents the current version of Delve.
type Version struct {
Major string
Minor string
Patch string
Metadata string
Build string
}
var (
// DelveVersion is the current version of Delve.
2017-01-09 19:47:07 +00:00
DelveVersion = Version{Major: "0", Minor: "12", Patch: "0", Metadata: ""}
)
func (v Version) String() string {
return fmt.Sprintf("Version: %s.%s.%s-%s\nBuild: %s", v.Major, v.Minor, v.Patch, v.Metadata, v.Build)
}