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