(str string)
| 174 | } |
| 175 | |
| 176 | func dehumanizeSigned(str string) (int64, error) { |
| 177 | value, err := dehumanize([]byte(strings.TrimPrefix(str, "-"))) |
| 178 | if err != nil { |
| 179 | return 0, err |
| 180 | } |
| 181 | if strings.HasPrefix(str, "-") { |
| 182 | return int64(-value), nil |
| 183 | } |
| 184 | return int64(value), nil |
| 185 | } |
| 186 | |
| 187 | type parser struct { |
| 188 | uuidPath string |
no test coverage detected