summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:48:04 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:48:04 +0100
commit466216e4496ab3346a50353b522af141a37b6a32 (patch)
treed29330e9c836a2ef295a8bc09774803650d00570
parentbaf535676025303f4e713fdf9f45d2d5a024cf6c (diff)
Remove external dependency from the example
-rw-r--r--example/main.go5
-rw-r--r--go.mod2
-rw-r--r--go.sum2
3 files changed, 2 insertions, 7 deletions
diff --git a/example/main.go b/example/main.go
index 9cd0d05..2cfc85c 100644
--- a/example/main.go
+++ b/example/main.go
@@ -15,8 +15,7 @@ import (
"os/signal"
"strings"
"sync"
-
- "golang.org/x/sys/unix"
+ "syscall"
"go.awhk.org/gosdd"
)
@@ -52,7 +51,7 @@ func main() {
func listenAll(fds []*os.File) {
sig := make(chan os.Signal, 1)
- signal.Notify(sig, os.Interrupt, unix.SIGTERM)
+ signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
srvs := make([]echoServer, 0, len(fds))
wg := &sync.WaitGroup{}
diff --git a/go.mod b/go.mod
index ecee8ab..832b735 100644
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,3 @@
module go.awhk.org/gosdd
go 1.16
-
-require golang.org/x/sys v0.0.0-20210616094352-59db8d763f22
diff --git a/go.sum b/go.sum
deleted file mode 100644
index 9f05d9d..0000000
--- a/go.sum
+++ /dev/null
@@ -1,2 +0,0 @@
-golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 h1:RqytpXGR1iVNX7psjB3ff8y7sNFinVFvkx1c8SjBkio=
-golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=