From 078092bc4c44a680c02cbcae8df53387713a259b Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 19 Jun 2024 23:03:51 +0900 Subject: [PATCH] go: initialise go module Add github.com/google/uuid as a dependency as well since it will be required for nonce generation. Exclude files based on template from GitHub. Signed-off-by: Ophestra Umiker --- .gitignore | 28 ++++++++++++++++++++++++++++ go.mod | 5 +++++ go.sum | 2 ++ 3 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..74733eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +/rpcfetch + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work +go.work.sum + +# env file +.env + +# config file +rpcfetch.conf +.idea +.vscode \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..c51f5b5 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module git.ophivana.moe/cat/rpcfetch + +go 1.22 + +require github.com/google/uuid v1.6.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..7790d7c --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=