Install
Install using Go (recommended)
go install github.com/conneroisu/gohard
Install from source
git clone https://github.com/conneroisu/gohard.git
cd gohard
go build
Install from binary
Download the latest binary from the releases page.
Nix/NixOS
Flake:
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.systems.follows = "systems";
inputs.gohard.url = "github:conneroisu/gohard";
inputs.gohard.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, gohard, nixpkgs, flake-utils, ... }:
{
flake-utils.lib.eachSystem [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
] (system: let
pkgs = import nixpkgs { inherit system; };
in
{
# OR for a shell
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
inputs.gohard.packages."${system}".gohard
];
};
});
}
Install from Homebrew
brew tap conneroisu/gohard
brew install gohard
Install from Snap
snap install gohard
Install from Docker
docker pull conneroisu/gohard