(component string, allowEmpty bool)
| 130 | } |
| 131 | |
| 132 | func ParseIntSequenceComponent(component string, allowEmpty bool) (uint64, error) { |
| 133 | value := uint64(0) |
| 134 | if allowEmpty && component == "" { |
| 135 | return value, nil |
| 136 | } |
| 137 | value, err := strconv.ParseUint(component, 10, 64) |
| 138 | return value, err |
| 139 | |
| 140 | } |
| 141 | |
| 142 | func (s SequenceID) MarshalJSON() ([]byte, error) { |
| 143 |
no outgoing calls
no test coverage detected