(sval string)
| 57 | } |
| 58 | |
| 59 | func parseIPv4Mask(sval string) (interface{}, error) { |
| 60 | mask := ParseIPv4Mask(sval) |
| 61 | if mask == nil { |
| 62 | return nil, fmt.Errorf("unable to parse %s as net.IPMask", sval) |
| 63 | } |
| 64 | return mask, nil |
| 65 | } |
| 66 | |
| 67 | // GetIPv4Mask return the net.IPv4Mask value of a flag with the given name |
| 68 | func (f *FlagSet) GetIPv4Mask(name string) (net.IPMask, error) { |
nothing calls this directly
no test coverage detected