From 2e4d1264dd14112f44131edd132ba30dd8fa0ec5 Mon Sep 17 00:00:00 2001 From: Peter Kleiweg Date: Wed, 24 Mar 2021 19:29:23 +0100 Subject: [PATCH] added ./examples/go.mod ; removed external dependency from ./go.mod --- examples/Build.sh | 10 +++++----- examples/go.mod | 10 ++++++++++ go.sum => examples/go.sum | 0 go.mod | 2 -- 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 examples/go.mod rename go.sum => examples/go.sum (100%) diff --git a/examples/Build.sh b/examples/Build.sh index 58b7dc0..b51bd0f 100755 --- a/examples/Build.sh +++ b/examples/Build.sh @@ -1,11 +1,11 @@ #!/bin/sh -go get github.com/pborman/uuid +#go get github.com/pborman/uuid -for i in bstar mdapi flcliapi kvsimple kvmsg clone intface -do - go install github.com/pebbe/zmq4/examples/$i -done +#for i in bstar mdapi flcliapi kvsimple kvmsg clone intface +#do +# go install github.com/pebbe/zmq4/examples/$i +#done cd `dirname $0` diff --git a/examples/go.mod b/examples/go.mod new file mode 100644 index 0000000..7c33356 --- /dev/null +++ b/examples/go.mod @@ -0,0 +1,10 @@ +module github.com/pebbe/zmq4/examples + +go 1.16 + +replace github.com/pebbe/zmq4 => ../ + +require ( + github.com/pborman/uuid v1.2.1 + github.com/pebbe/zmq4 v0.0.0-00010101000000-000000000000 // indirect +) diff --git a/go.sum b/examples/go.sum similarity index 100% rename from go.sum rename to examples/go.sum diff --git a/go.mod b/go.mod index 6509713..730a2df 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ module github.com/pebbe/zmq4 go 1.16 - -require github.com/pborman/uuid v1.2.1