urltranslate

package
v0.0.3-beta20 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitiseServerURL

func SanitiseServerURL(s string) (string, error)

Types

type ParameterisedURL

type ParameterisedURL interface {
	Raw() string
	String() string
	GetElementByString(s string) (QueryElement, bool)
	GetVarByName(name string) (QueryVar, bool)
}

func ExtractParameterisedURL

func ExtractParameterisedURL(s string) (ParameterisedURL, error)

type QueryElement

type QueryElement interface {
	String() string
	FullString() string
	// contains filtered or unexported methods
}

type QueryVar

type QueryVar interface {
	QueryElement
	GetName() string
}

type URLHost

type URLHost interface {
	GetHost() string
}

func ParseURLHost

func ParseURLHost(h string) (URLHost, error)

type URLHostSimple

type URLHostSimple struct {
	// contains filtered or unexported fields
}

func (*URLHostSimple) GetHost

func (h *URLHostSimple) GetHost() string

Jump to

Keyboard shortcuts

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