From 5192122926dcc6e297769089613d318c151aaff8 Mon Sep 17 00:00:00 2001 From: Michael Jarvis Date: Tue, 30 Nov 2021 11:45:33 -0600 Subject: [PATCH] Add go.mod file This adds a go.mod file, to better support managing dependencies in Go with modules. All of the cool kids started doing this with the preliminary support in Go v1.11 and v1.12, and it became the default with Go 1.13, released in September 2019. If you clone the repository and try to run the benchmark with the latest Go 1.17 compiler, you get an error: ``` $ go test -v -bench=. go: cannot find main module, but found .git/config in ~/src/github.com/mojotx/pcg to create a module there, run: go mod init ``` --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e08ef17 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/MichaelTJones/pcg + +go 1.17