Skip to content
/ hisuru Public

Go program that compares software versions in the x.y.z format

License

Notifications You must be signed in to change notification settings

kmlx/hisuru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hisuru

Go program that compares software versions in the x.y.z format

Usage:

  x := "1"
  y := "1.0.1"
  z := "1.0"
  fmt.Println(hisuru.Compare(x, y)) // 1 = y
  fmt.Println(hisuru.Compare(x, z)) // 0 = equal
  fmt.Println(hisuru.Compare(x, a)) // -1 = x

About

Go program that compares software versions in the x.y.z format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages