started using zed

This commit is contained in:
Andrey Parhomenko 2024-09-01 00:02:47 +05:00
parent bdf1fd0ceb
commit b5d6c67685
4 changed files with 11 additions and 7 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
exe/
*.exe
*.swp
/bb

2
go.mod
View file

@ -2,4 +2,4 @@ module surdeus.su/util/bb
go 1.22.3
require surdeus.su/core/cli v0.3.0
require surdeus.su/core/cli v0.5.0

2
go.sum
View file

@ -2,3 +2,5 @@ surdeus.su/core/cli v0.1.2 h1:qPzjawqPyZsO4Z5SaA1u141recVE65yioA83Qs7Jecs=
surdeus.su/core/cli v0.1.2/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
surdeus.su/core/cli v0.3.0 h1:/2UfObbesg3/2FPn/9Ys/w/H2XOxOv72ehidwctAGdM=
surdeus.su/core/cli v0.3.0/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
surdeus.su/core/cli v0.5.0 h1:jYvE0JVDikFT9FhWGV3wIAcMgByziAVxTwsVUwWkeHs=
surdeus.su/core/cli v0.5.0/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=

View file

@ -1,13 +1,15 @@
package cat
/* Concatenate files in "stdout". */
import(
"os"
"io"
import (
"fmt"
"io"
"os"
"surdeus.su/core/cli/mtool"
)
var(
var (
blockSize int
)
@ -37,7 +39,7 @@ func fcat(f *os.File) error {
return nil
}
func Run(flags *mtool.Flags) {
func Run(flags *mtool.Flags) {
flags.IntVar(&blockSize, "bs", 512, "block size")
flags.Parse()
args := flags.Args()