go-hep is written in Go.
You will need to have a valid Go toolchain installed.
Installing a Go toolchain is explained on the main Go website: https://golang.org/doc/install.
You can either:
- download the binaries for your operating system,
- install Go via your O/S package manager, or
- recompiled from sources.
Option 1) is recommanded (Go has a quick release cycle so package managers tend to lag a bit.)
It is always OK to download the latest Go version and upgrade regularly as the Go toolchain has a solid reputation of backward compatibility (since version
Once Go has been installed, you should be able to run:
$> go version $> go env
go-hep packages are installable with the
go get command:
$> go get go-hep.org/x/hep/fads
- fetch the sources for
- inspect the sources for package dependencies,
- fetch the dependencies (recursively),
- build and install the dependencies,
- build and install
go get compiles the package for your operating system and architecture.
But you can easily cross-compile for other operating systems and architectures:
$> GOOS=linux GOARCH=amd64 go get go-hep.org/x/hep/fads $> GOOS=windows GOARCH=386 go get go-hep.org/x/hep/fads
The list of supported operating systems and architectures is given by:
$> go tool dist list
To install a package and all the packages or commands under it (and, of course, their dependencies), use the ellipsis
$> go get go-hep.org/x/hep/fads/...
To update your local install of
go-hep, you would use again the
go get command, with the
$> go get -u go-hep.org/x/hep/fads