(Feat): Follow semantic versioning
This commit is contained in:
19
internal/version/version.go
Normal file
19
internal/version/version.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package version
|
||||
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
Major = 1
|
||||
Minor = 0
|
||||
Patch = 3
|
||||
)
|
||||
|
||||
// Version returns the semantic version string
|
||||
func Version() string {
|
||||
return fmt.Sprintf("%d.%d.%d", Major, Minor, Patch)
|
||||
}
|
||||
|
||||
// FullVersion returns the version with app name
|
||||
func FullVersion() string {
|
||||
return fmt.Sprintf("Zipprine v%s", Version())
|
||||
}
|
||||
Reference in New Issue
Block a user