serverurl

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package serverurl reads OpenAPI server URLs, which may be templates that url.Parse rejects.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL