SetDirectory joins any relative file paths with dir.
(dir string)
| 152 | |
| 153 | // SetDirectory joins any relative file paths with dir. |
| 154 | func (a *Authorization) SetDirectory(dir string) { |
| 155 | if a == nil { |
| 156 | return |
| 157 | } |
| 158 | a.CredentialsFile = JoinDir(dir, a.CredentialsFile) |
| 159 | } |
| 160 | |
| 161 | // URL is a custom URL type that allows validation at configuration load time. |
| 162 | type URL struct { |