(endpoint string)
| 70 | } |
| 71 | |
| 72 | func canonize(endpoint string) string { |
| 73 | return strings.TrimSuffix(strings.TrimSpace(endpoint), "/") |
| 74 | } |
| 75 | |
| 76 | // userConfigLoader loads the user configuration. Production passes |
| 77 | // [userconfig.Load]; tests inject a stub so they neither touch the real |
no outgoing calls