Skip to content

clfs/mixup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages