URL returns a new url.URL pointer. When Parse is called, env var name will be parsed and the resulting value will be assigned to the returned location. URL panics if there is an error parsing the given default value.
(name string, value string)
| 100 | // URL panics if there is an error parsing |
| 101 | // the given default value. |
| 102 | func URL(name string, value string) *url.URL { |
| 103 | p := new(url.URL) |
| 104 | URLVar(p, name, value) |
| 105 | return p |
| 106 | } |
| 107 | |
| 108 | // URLVar defines a url.URL variable with |
| 109 | // the specified name ande default value. |