NullInt is a wrapper around integer values that can be null or an integer. Use IsSet to check if the value is provided, instead of checking against 0.
| 12 | // NullInt is a wrapper around integer values that can be null or an integer. |
| 13 | // Use IsSet to check if the value is provided, instead of checking against 0. |
| 14 | type NullInt struct { |
| 15 | IsSet bool |
| 16 | Value int |
| 17 | } |
| 18 | |
| 19 | // ParseStringValue is used to parse a user provided flag argument. |
| 20 | func (n *NullInt) ParseStringValue(val string) error { |
no outgoing calls
no test coverage detected