diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 15:48:04 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 15:48:04 +0100 |
| commit | 466216e4496ab3346a50353b522af141a37b6a32 (patch) | |
| tree | d29330e9c836a2ef295a8bc09774803650d00570 | |
| parent | baf535676025303f4e713fdf9f45d2d5a024cf6c (diff) | |
Remove external dependency from the example
| -rw-r--r-- | example/main.go | 5 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | go.sum | 2 |
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{} @@ -1,5 +1,3 @@ module go.awhk.org/gosdd go 1.16 - -require golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 @@ -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= |
