Skip to content

Commit

Permalink
semantic versioning (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozansz committed Aug 3, 2022
1 parent 6f5eb47 commit 024f482
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/info/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ package info
import "fmt"

const (
Project = "gls"
Version = "0.1.1"
Project = "gls"
VersionMajor = 1
VersionMinor = 0
VersionPatch = 0
)

func ProjectNameWithVersion() string {
return fmt.Sprintf("%s v%s", Project, Version)
return fmt.Sprintf("%s v%d.%d.%d", Project, VersionMajor, VersionMinor, VersionPatch)
}

0 comments on commit 024f482

Please sign in to comment.