atoiOmitZero returns 0 if s == "", otherwised it parses s as a base-10 int64.
(s string)
| 583 | |
| 584 | // atoiOmitZero returns 0 if s == "", otherwised it parses s as a base-10 int64. |
| 585 | func atoiOmitZero(s string) (int64, error) { |
| 586 | if s == "" { |
| 587 | return 0, nil |
| 588 | } |
| 589 | return strconv.ParseInt(s, 10, 64) |
| 590 | } |
| 591 | |
| 592 | // Special values for [Installable].Outputs. |
| 593 | const ( |