Skip to content

haya14busa/go-versionsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

versionsort

LICENSE GoDoc

Usage

import "github.com/haya14busa/go-versionsort"

func ExampleVersionSort() {
	strs := []string{
		"v1.1",
		"v1.10",
		"v1.11",
		"v1.9",
		"v1.8",
	}
	versionsort.Sort(strs, false)
	for _, s := range strs {
		fmt.Println(s)
	}
	// Output:
	// v1.1
	// v1.8
	// v1.9
	// v1.10
	// v1.11
}

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages