pkg/reuseport: Remove pre-go1.11 impl (#4795)

This commit is contained in:
Manuel Rüger
2021-08-13 07:46:35 +02:00
committed by GitHub
parent 964cf38412
commit 4a34e8b897
2 changed files with 0 additions and 16 deletions

View File

@@ -1,6 +1,3 @@
// +build go1.11
// +build aix darwin dragonfly freebsd linux netbsd openbsd
package reuseport
import (

View File

@@ -1,13 +0,0 @@
// +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
package reuseport
import "net"
// Listen is a wrapper around net.Listen.
func Listen(network, addr string) (net.Listener, error) { return net.Listen(network, addr) }
// ListenPacket is a wrapper around net.ListenPacket.
func ListenPacket(network, addr string) (net.PacketConn, error) {
return net.ListenPacket(network, addr)
}