From a27da995c9d8a53b3ef510a4407546c47591a9ee Mon Sep 17 00:00:00 2001 From: Kanishk Singh Date: Sun, 8 Dec 2019 15:41:01 +0530 Subject: [PATCH 1/3] Add go modules support --- README.md | 12 ++++++++++++ go.mod | 12 ++++++++++++ go.sum | 10 ++++++++++ 3 files changed, 34 insertions(+) create mode 100644 go.mod create mode 100644 go.sum diff --git a/README.md b/README.md index cad84f4..a2daa2a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,18 @@ Also, a friendly reminder that contributions are not limited to code - it is abo **Prerequisites**: Go version 1.7 or greater. +### For Go >=1.11: + +1. Clone the repository + +``` +git clone https://github.com/nikhita/github-contrib` +``` + +2. + +### For Go <1.11 + 1. Get the code ``` diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5a18969 --- /dev/null +++ b/go.mod @@ -0,0 +1,12 @@ +module github.com/nikhita/github-contrib + +go 1.11 + +require ( + github.com/golang/protobuf v0.0.0-20170816001514-ab9f9a6dab16 + github.com/google/go-github v17.0.0+incompatible + github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 + golang.org/x/net v0.0.0-20170809000501-1c05540f6879 + golang.org/x/oauth2 v0.0.0-20170807180024-9a379c6b3e95 + google.golang.org/appengine v1.0.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..5b30b43 --- /dev/null +++ b/go.sum @@ -0,0 +1,10 @@ +github.com/golang/protobuf v0.0.0-20170816001514-ab9f9a6dab16/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= +github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= +github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 h1:zLTLjkaOFEFIOxY5BWLFLwh+cL8vOBW4XJ2aqLE/Tf0= +github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +golang.org/x/net v0.0.0-20170809000501-1c05540f6879 h1:0rFa7EaCGdQPmZVbo9F7MNF65b8dyzS6EUnXjs9Cllk= +golang.org/x/net v0.0.0-20170809000501-1c05540f6879/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20170807180024-9a379c6b3e95 h1:RS+wSrhdVci7CsPwJaMN8exaP3UTuQU0qB34R/E/JD0= +golang.org/x/oauth2 v0.0.0-20170807180024-9a379c6b3e95/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +google.golang.org/appengine v1.0.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= From 5a1eeacb3a847d2df37fdea1fe6612072b4308cb Mon Sep 17 00:00:00 2001 From: Kanishk Singh Date: Sun, 8 Dec 2019 15:43:49 +0530 Subject: [PATCH 2/3] Add install instruction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2daa2a..03d3295 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Also, a friendly reminder that contributions are not limited to code - it is abo git clone https://github.com/nikhita/github-contrib` ``` -2. +2. `go install` ### For Go <1.11 From 88d12b0143e0d786eb4be6d02287070d8d0b8690 Mon Sep 17 00:00:00 2001 From: Kanishk Singh Date: Sun, 5 Jan 2020 13:56:44 +0530 Subject: [PATCH 3/3] Removed Go 1.11 specific instructions --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index 03d3295..cad84f4 100644 --- a/README.md +++ b/README.md @@ -14,18 +14,6 @@ Also, a friendly reminder that contributions are not limited to code - it is abo **Prerequisites**: Go version 1.7 or greater. -### For Go >=1.11: - -1. Clone the repository - -``` -git clone https://github.com/nikhita/github-contrib` -``` - -2. `go install` - -### For Go <1.11 - 1. Get the code ```