From 7102aa9066013bc5279825e3e9115d29d0feb55b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 9 Jan 2019 17:24:22 -0800 Subject: [PATCH] document go version requirement And refuse to build on older versions. --- README.md | 2 ++ old_go_warning.go | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 old_go_warning.go diff --git a/README.md b/README.md index b46d433..1db5ae5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![travisbadge](https://travis-ci.org/libp2p/go-reuseport.svg)](https://travis-ci.org/libp2p/go-reuseport) +**NOTE:** This package REQUIRES go >= 1.11. + This package enables listening and dialing from _the same_ TCP or UDP port. This means that the following sockopts may be set: diff --git a/old_go_warning.go b/old_go_warning.go new file mode 100644 index 0000000..835d53c --- /dev/null +++ b/old_go_warning.go @@ -0,0 +1,6 @@ +// +build !go1.11 + +"go-reuseport requires go >= 1.11" + +; + -- GitLab