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