...

Source file src/github.com/mdlayher/socket/netns_others.go

Documentation: github.com/mdlayher/socket

     1  //go:build !linux
     2  // +build !linux
     3  
     4  package socket
     5  
     6  import (
     7  	"fmt"
     8  	"runtime"
     9  )
    10  
    11  // withNetNS returns an error on non-Linux systems.
    12  func withNetNS(_ int, _ func() (*Conn, error)) (*Conn, error) {
    13  	return nil, fmt.Errorf("socket: Linux network namespace support is not available on %s", runtime.GOOS)
    14  }
    15  

View as plain text