Skip to content

nets.NewNamed missing important info in doc #50

@NorbertHauriel

Description

@NorbertHauriel

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions