Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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 (

About

Shuffle standard input.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages