gosplit - split a file into pieces in Go
gosplit is a like Unix command that uses only the Go standard library.
-b
option splits the file by specified bytes
❯ echo aaa | ./gosplit -b 1
❯ ls
xaa xab xac xad
-l
option splits the file by specified lines
❯ echo aaa | ./gosplit -l 1
❯ ls
xaa