all: assert internal objects implement interfaces

This commit is contained in:
Dan Williams
2016-12-14 17:09:01 -06:00
parent 20ae9e156d
commit 5852c60bc4
6 changed files with 22 additions and 0 deletions

View File

@ -62,6 +62,9 @@ type netNS struct {
closed bool
}
// netNS implements the NetNS interface
var _ NetNS = &netNS{}
func getCurrentThreadNetNSPath() string {
// /proc/self/ns/net returns the namespace of the main thread, not
// of whatever thread this goroutine is running on. Make sure we