I find it slightly eaiser to read this code when `api.BasePath = conf.BasePath` is right at the top as it's unrelated to the parsing code below. Note that the code itself is problematic: - api.BasePath is global but client is not, this means that multiple client with different configs will result in api.BasePath being potentially wrong - api.BasePath is set in a non-thread safe manner Changing is a bigger job but we might consider it (IMHO). |
||
|---|---|---|
| .. | ||
| api | ||
| clienterrors | ||
| client.go | ||
| client_test.go | ||
| json.go | ||
| json_test.go | ||
| proxy_test.go | ||
| server.go | ||
| server_test.go | ||