An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/brentp/gsort

Package gsort is a library for sorting a stream of tab-delimited lines ([]bytes) (from a reader) using the amount of memory requested. Instead of using a compare function as most sorts do, this accepts a user-defined function with signature: `func(line []byte) []int` where the []ints are used to determine ordering. For example if we were sorting on 2 columns, one of months and another of day of months, the function would replace "Jan" with 1 and "Feb" with 2 for the first column and just return the Atoi of the 2nd column. Header lines are assumed to start with '#'. To indicate other lines that are header lines, the user function to Sort() can return `[]int{gsort.HEADER_LINE}`.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/brentp/gsort
License: MIT
Latest release: 10 days ago
First release: over 9 years ago
Namespace: github.com/brentp
Stars: 36 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/brentp
Last synced: 3 days ago

    Loading...
    Readme
    Loading...