From 1e9da0190a3b16d5d250f4298010d0e8fee8b3c5 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 14 Jul 2023 21:39:46 -0700 Subject: [PATCH] Initial commit --- .envrc | 1 + go.mod | 3 +++ main.go | 7 +++++++ shell.nix | 7 +++++++ 4 files changed, 18 insertions(+) create mode 100644 .envrc create mode 100644 go.mod create mode 100644 main.go create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..be80b31 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module ElnuDev/go-project + +go 1.20 diff --git a/main.go b/main.go new file mode 100644 index 0000000..a3dd973 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3bb54a7 --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? import {}}: + +pkgs.mkShell { + buildInputs = with pkgs; [ + go + ]; +}