SetDirectory joins any relative file paths with dir.
(dir string)
| 165 | |
| 166 | // SetDirectory joins any relative file paths with dir. |
| 167 | func (a *Authorization) SetDirectory(dir string) { |
| 168 | if a == nil { |
| 169 | return |
| 170 | } |
| 171 | a.CredentialsFile = JoinDir(dir, a.CredentialsFile) |
| 172 | } |
| 173 | |
| 174 | // URL is a custom URL type that allows validation at configuration load time. |
| 175 | type URL struct { |