mixup

command module
v0.0.0-...-f95575a Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 6 Imported by: 0

README

mixup

Shuffle standard input.

Install the binary to your current directory:

GOBIN="$(pwd)" go install github.com/clfs/mixup@latest

Examples

Sample input:

$ head main.go
package main

import (
	"bufio"
	"flag"
	"fmt"
	"log"
	"math/rand/v2"
	"os"
)

Random shuffle:

$ head main.go | mixup
import (
	"os"
	"flag"

	"log"
	"fmt"
	"math/rand/v2"
package main
)
	"bufio"

Deterministic shuffle:

$ head main.go | mixup -d
	"flag"
	"fmt"
	"os"

package main
)
	"math/rand/v2"
	"bufio"
	"log"
import (

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