OptionServer returns a Client constructor option that forces use of the provided server. The provided server is either "host:port" (assumed http, not https) or a URL prefix, with or without a path, or a server alias from the client configuration file. A server alias should not be confused with a ho
(server string)
| 322 | // client configuration file. A server alias should not be confused |
| 323 | // with a hostname, therefore it cannot contain any colon or period. |
| 324 | func OptionServer(server string) ClientOption { |
| 325 | return optionServer(server) |
| 326 | } |
| 327 | |
| 328 | type optionServer string |
| 329 |