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:
GnomeZworc 2026-01-08 23:47:52 +01:00
commit a650a34fc3
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,7 @@
//go:build !linux
package netns
func call(name string, fn func() error) error {
return fn()
}