f-10: code: add function to call a function in a netns #10
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
454005d6ac
commit
a650a34fc3
3 changed files with 56 additions and 0 deletions
7
internal/netns/call_other.go
Normal file
7
internal/netns/call_other.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
//go:build !linux
|
||||
|
||||
package netns
|
||||
|
||||
func call(name string, fn func() error) error {
|
||||
return fn()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue