go-topn

command module
v0.0.0-...-5aecd30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 8 Imported by: 0

README

TopN

A simple application to find the top n numbers in a given file that has one integer on each line.

Usage

Generate a file of random numbers:

shuf -i 1-1000000000 -n 1000000000 -o <filename> # 9.2 GiB

Build the application:

go build ./...

Run the application for a given file:

./go-topn -f <filename>

Set the number of top entries to return (default=10):

./go-topn -f <filename> -n <number>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL