type NsHandle … // Equal determines if two network handles refer to the same network // namespace. This is done by comparing the device and inode that the // file descriptors point to. func (ns NsHandle) Equal(other NsHandle) bool { … } // String shows the file descriptor number and its dev and inode. func (ns NsHandle) String() string { … } // UniqueId returns a string which uniquely identifies the namespace // associated with the network handle. func (ns NsHandle) UniqueId() string { … } // IsOpen returns true if Close() has not been called. func (ns NsHandle) IsOpen() bool { … } // Close closes the NsHandle and resets its file descriptor to -1. // It is not safe to use an NsHandle after Close() is called. func (ns *NsHandle) Close() error { … } // None gets an empty (closed) NsHandle. func None() NsHandle { … }