nets.NewNamed missing important info in doc
NorbertHauriel opened this issue · 0 comments
NorbertHauriel commented
netns.New correctly states that it sets the returned handle as current, but netns.NewNamed tells that it just creates it, no mention of setting as current. While looking into the body of NewNamed, I saw New being called, so I assume this is a mistake in the documentation.
// New creates a new network namespace, sets it as current and returns
// a handle to it.
func New() (ns NsHandle, err error)
// NewNamed creates a new named network namespace and returns a handle to it
func NewNamed(name string) (NsHandle, error)