Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SortTags (0.08 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/internal.go

    // packages in the text repository.
    package internal // import "golang.org/x/text/internal"
    
    import (
    	"sort"
    
    	"golang.org/x/text/language"
    )
    
    // SortTags sorts tags in place.
    func SortTags(tags []language.Tag) {
    	sort.Sort(sorter(tags))
    }
    
    type sorter []language.Tag
    
    func (s sorter) Len() int {
    	return len(s)
    }
    
    func (s sorter) Swap(i, j int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top