Documentation ¶ Overview ¶ Package serverurl reads OpenAPI server URLs, which may be templates that url.Parse rejects. Index ¶ func BasePath(serverURL string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func BasePath ¶ func BasePath(serverURL string) string BasePath returns the path of an OpenAPI server URL, as url.Parse reports it. A server variable in the scheme, host, or port (for example "https://{host}/api/v1") makes url.Parse fail, so the path is then read from after the host instead. Types ¶ This section is empty. Source Files ¶ View all Source files serverurl.go Click to show internal directories. Click to hide internal directories.