Getting Flags From a Network Interface

Viewed 1118

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.

1 Answers
Related