From fd0469700d0c4510afd27a3ed540abde7fbf020f Mon Sep 17 00:00:00 2001 From: dengyijian <dengyijian163@163.com> Date: Thu, 24 Oct 2024 16:36:20 +0800 Subject: [PATCH 1/3] build(mod): go mod init and tidy dependencies --- go.mod | 10 ++++++++++ go.sum | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..cf6b3be --- /dev/null +++ b/go.mod @@ -0,0 +1,10 @@ +module github.com/cratonica/2goarray + +go 1.19.0 + +require golang.org/x/crypto v0.28.0 + +require ( + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..8063669 --- /dev/null +++ b/go.sum @@ -0,0 +1,6 @@ +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= From 4f4fce7977594767bbb37993342e2bca9f3d6d9b Mon Sep 17 00:00:00 2001 From: dengyijian <dengyijian163@163.com> Date: Thu, 24 Oct 2024 16:39:14 +0800 Subject: [PATCH 2/3] build(mod): go mod project module name -> github.com/cloudflare-fans/2goarray --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index cf6b3be..b874322 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/cratonica/2goarray +module github.com/cloudflare-fans/2goarray go 1.19.0 From b6448fbd6b9b2bee02c19c5c204e230f20280bb3 Mon Sep 17 00:00:00 2001 From: dengyijian <dengyijian163@163.com> Date: Thu, 24 Oct 2024 16:48:11 +0800 Subject: [PATCH 3/3] docs(README.md): installing guide --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bca7375..90292dd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A simple utility to encode a file (or any other data) into a Go byte slice. Having [set up your Go environment](http://golang.org/doc/install), simply run - go get github.com/cratonica/2goarray + go install github.com/cloudflare-fans/2goarray Then use by piping a file into the utility and capturing the output. You must provide a name for the generated slice symbol and package name. For example: