From f3f3c4c39174e53a846baad34119ce4c3f22b733 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Wed, 6 Oct 2021 19:37:37 -0700 Subject: [PATCH] Create a separate module for the command-line tools. To allow the command-line tools to depend on things that the main library does not require, create a separate module within the same repository. The versions will remain synchronized with the main repository. New module: github.com/creachadair/jrpc2/tools --- {cmd => tools}/examples/adder/adder.go | 0 {cmd => tools}/examples/client/client.go | 0 {cmd => tools}/examples/http/server.go | 0 {cmd => tools}/examples/server/server.go | 0 tools/go.mod | 7 +++++++ tools/go.sum | 9 +++++++++ {cmd => tools}/jcall/jcall.go | 0 7 files changed, 16 insertions(+) rename {cmd => tools}/examples/adder/adder.go (100%) rename {cmd => tools}/examples/client/client.go (100%) rename {cmd => tools}/examples/http/server.go (100%) rename {cmd => tools}/examples/server/server.go (100%) create mode 100644 tools/go.mod create mode 100644 tools/go.sum rename {cmd => tools}/jcall/jcall.go (100%) diff --git a/cmd/examples/adder/adder.go b/tools/examples/adder/adder.go similarity index 100% rename from cmd/examples/adder/adder.go rename to tools/examples/adder/adder.go diff --git a/cmd/examples/client/client.go b/tools/examples/client/client.go similarity index 100% rename from cmd/examples/client/client.go rename to tools/examples/client/client.go diff --git a/cmd/examples/http/server.go b/tools/examples/http/server.go similarity index 100% rename from cmd/examples/http/server.go rename to tools/examples/http/server.go diff --git a/cmd/examples/server/server.go b/tools/examples/server/server.go similarity index 100% rename from cmd/examples/server/server.go rename to tools/examples/server/server.go diff --git a/tools/go.mod b/tools/go.mod new file mode 100644 index 0000000..ab7084b --- /dev/null +++ b/tools/go.mod @@ -0,0 +1,7 @@ +module github.com/creachadair/jrpc2/tools + +go 1.17 + +require github.com/creachadair/jrpc2 v0.26.1 + +require golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect diff --git a/tools/go.sum b/tools/go.sum new file mode 100644 index 0000000..1335561 --- /dev/null +++ b/tools/go.sum @@ -0,0 +1,9 @@ +github.com/creachadair/jrpc2 v0.26.1 h1:5i6kkw2hmeocwwFHjNkiQ6jePMufdhcfWOlV6ACU5y8= +github.com/creachadair/jrpc2 v0.26.1/go.mod h1:w+GXZGc+NwsH0xsUOgeLBIIRM0jBOSTXhv28KaWGRZU= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/cmd/jcall/jcall.go b/tools/jcall/jcall.go similarity index 100% rename from cmd/jcall/jcall.go rename to tools/jcall/jcall.go