Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Jul 31, 2014
1 parent 25804a6 commit d0693e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,6 @@ Mainly searches for Go executables in `$PATH`, `$GOBIN`, `$GOPATH` and updates t

*Usage*

```bash
~ $ GOPATH=~ go get github.com/rjeczalik/pkgconfig/cmd/pkg-config \
github.com/rjeczalik/bindata/cmd/bindata \
github.com/rjeczalik/which/cmd/gowhich \
github.com/rjeczalik/tools/cmd/gotree
```
```bash
~ $ GOPATH=~ gobin
/home/rjeczalik/bin/bindata (github.com/rjeczalik/bindata/cmd/bindata)
/home/rjeczalik/bin/gotree (github.com/rjeczalik/tools/cmd/gotree)
/home/rjeczalik/bin/gowhich (github.com/rjeczalik/which/cmd/gowhich)
/home/rjeczalik/bin/pkg-config (github.com/rjeczalik/pkgconfig/cmd/pkg-config)
```
```bash
~ $ GOPATH=~ gobin -u
ok /home/rjeczalik/bin/gowhich (github.com/rjeczalik/which/cmd/gowhich) 5.926s
ok /home/rjeczalik/bin/gotree (github.com/rjeczalik/tools/cmd/gotree) 2.494s
ok /home/rjeczalik/bin/pkg-config (github.com/rjeczalik/pkgconfig/cmd/pkg-config) 2.635s
ok /home/rjeczalik/bin/bindata (github.com/rjeczalik/bindata/cmd/bindata) 3.474s
```
![gobin](https://i.imgur.com/AEimmsY.gif "gobin")

**NOTE** Bumping GOMAXPROCS value up may speed up gobin significantly.
3 changes: 1 addition & 2 deletions bin.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func Update(b []Bin, log func(*Bin, time.Duration, error)) {
for i := min(parallel, len(builds)); i > 0; i-- {
go func() {
for kv := range ch {
wrk, err := ioutil.TempDir("", "gobin")
wrk, err := "/tmp/gobin", (error)(nil)
if err != nil {
seterr(time.Now(), err, kv.v...)
continue
Expand Down Expand Up @@ -290,7 +290,6 @@ func Update(b []Bin, log func(*Bin, time.Duration, error)) {
}
}
seterr(t, nil, kv.v...)
os.RemoveAll(wrk)
wg.Done()
}
}()
Expand Down

0 comments on commit d0693e1

Please sign in to comment.