Parse parses known env vars and assigns the values to the variables that were previously registered. If any values cannot be parsed, Parse prints an error message for each one and exits the process with status 1.
()
| 188 | // Parse prints an error message for each one |
| 189 | // and exits the process with status 1. |
| 190 | func Parse() { |
| 191 | ok := true |
| 192 | for _, f := range funcs { |
| 193 | ok = f() && ok |
| 194 | } |
| 195 | if !ok { |
| 196 | os.Exit(1) |
| 197 | } |
| 198 | } |