From f19e34ff16fb152a4ee87ee57f5d4ec50e2c810e Mon Sep 17 00:00:00 2001 From: Hubert Date: Wed, 16 Sep 2015 16:52:32 +0200 Subject: [PATCH] dosc: fix golint errors --- netns.go | 2 +- netns_linux.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/netns.go b/netns.go index 2ca0fee..df04d2a 100644 --- a/netns.go +++ b/netns.go @@ -61,7 +61,7 @@ func (ns *NsHandle) Close() error { return nil } -// Get an empty (closed) NsHandle +// None gets an empty (closed) NsHandle. func None() NsHandle { return NsHandle(-1) } diff --git a/netns_linux.go b/netns_linux.go index 935dfab..346dddc 100644 --- a/netns_linux.go +++ b/netns_linux.go @@ -13,6 +13,7 @@ import ( "syscall" ) +// SYS_SETNS syscall allows changing the namespace of the current process. var SYS_SETNS = map[string]uintptr{ "386": 346, "amd64": 308, @@ -22,8 +23,8 @@ var SYS_SETNS = map[string]uintptr{ "s390x": 339, }[runtime.GOARCH] +// Deprecated: use syscall pkg instead (go >= 1.5 needed). const ( - // Deprecated: use syscall pkg instead (go >= 1.5 needed). CLONE_NEWUTS = 0x04000000 /* New utsname group? */ CLONE_NEWIPC = 0x08000000 /* New ipcs */ CLONE_NEWUSER = 0x10000000 /* New user namespace */