diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-03-03 02:08:53 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-03-03 02:08:53 +0100 |
| commit | 4690bfc66d627961652615bf94beaa0d9a459532 (patch) | |
| tree | 1775fbb7b4c6b336d222461b832d6aa6336a8d92 /2023/Go | |
| parent | 4e81b19c2e6f081e45917dc2aac4381d863def83 (diff) | |
feat: Setup nix shells
Diffstat (limited to '2023/Go')
| -rw-r--r-- | 2023/Go/.envrc | 1 | ||||
| -rw-r--r-- | 2023/Go/go.mod | 2 | ||||
| -rw-r--r-- | 2023/Go/main.go | 18 | ||||
| -rw-r--r-- | 2023/Go/shell.nix | 17 |
4 files changed, 28 insertions, 10 deletions
diff --git a/2023/Go/.envrc b/2023/Go/.envrc new file mode 100644 index 0000000..0a722d7 --- /dev/null +++ b/2023/Go/.envrc @@ -0,0 +1 @@ +use nix; diff --git a/2023/Go/go.mod b/2023/Go/go.mod index 33ff07f..1c60379 100644 --- a/2023/Go/go.mod +++ b/2023/Go/go.mod @@ -1,3 +1,3 @@ -module github.com/DJOLEARY/Advent_of_Code +module github.com/DJOLEARY/Advent_of_Code/2023/Go go 1.22.3 diff --git a/2023/Go/main.go b/2023/Go/main.go index 3357d3e..c8f7100 100644 --- a/2023/Go/main.go +++ b/2023/Go/main.go @@ -4,15 +4,15 @@ import ( "flag" "os" - "github.com/DJOLEARY/Advent_of_Code/internal/day_01" - day_02_part_01 "github.com/DJOLEARY/Advent_of_Code/internal/day_02/part_01" - day_02_part_02 "github.com/DJOLEARY/Advent_of_Code/internal/day_02/part_02" - day_03_part_01 "github.com/DJOLEARY/Advent_of_Code/internal/day_03/part_01" - day_04_part_01 "github.com/DJOLEARY/Advent_of_Code/internal/day_04/part_01" - day_04_part_02 "github.com/DJOLEARY/Advent_of_Code/internal/day_04/part_02" - day_06_part_01 "github.com/DJOLEARY/Advent_of_Code/internal/day_06/part_01" - day_06_part_02 "github.com/DJOLEARY/Advent_of_Code/internal/day_06/part_02" - day_07_part_01 "github.com/DJOLEARY/Advent_of_Code/internal/day_07/part_01" + "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_01" + day_02_part_01 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_02/part_01" + day_02_part_02 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_02/part_02" + day_03_part_01 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_03/part_01" + day_04_part_01 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_04/part_01" + day_04_part_02 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_04/part_02" + day_06_part_01 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_06/part_01" + day_06_part_02 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_06/part_02" + day_07_part_01 "github.com/DJOLEARY/Advent_of_Code/2023/Go/internal/day_07/part_01" ) func main() { diff --git a/2023/Go/shell.nix b/2023/Go/shell.nix new file mode 100644 index 0000000..9573d44 --- /dev/null +++ b/2023/Go/shell.nix @@ -0,0 +1,17 @@ +{ + pkgs ? import <nixpkgs> { }, +}: + +pkgs.mkShell { + # build tools + nativeBuildInputs = with pkgs; [ + go + ]; + # dependencies + buildInputs = with pkgs; [ + delve + gopls + gotools + golangci-lint + ]; +} |
