labnotes

Installing a go binary

right from the source

tags
golang

Where are the files going to be installed?

1
  go env GOBIN
/Users/wschenk/bin

Set if blank

1
  go env -w GOBIN=$HOME/bin

See the output

1
  ls -l $(go env GOBIN)/go-org
ls: /Users/wschenk/bin/go-org: No such file or directory

Install

Make sure to use the @latest version if you don't have a particular one in mind.

1
  go install github.com/niklasfasching/go-org@latest
go: downloading github.com/niklasfasching/go-org v1.7.0
go: downloading github.com/alecthomas/chroma/v2 v2.5.0
go: downloading golang.org/x/net v0.0.0-20201224014010-6772e930b67b
go: downloading github.com/dlclark/regexp2 v1.4.0

#+end_src

Thats it

1
  which go-org
/Users/wschenk/bin/go-org

Previously

fragments

Four freedoms

tags

Next

fragments

Vacation Book Reading

tags