Looking at the net/interface.go code it seems like the only way to get interface flags is as strings. Is this true?
if strings.Contains(i.Flags.String(), "broadcast") {
Feels gross.
Looking at the net/interface.go code it seems like the only way to get interface flags is as strings. Is this true?
if strings.Contains(i.Flags.String(), "broadcast") {
Feels gross.