urltranslate

package
v0.0.8-alpha10 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 2 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 {
	IsVariable() bool
	String() string
	FullString() string
	// contains filtered or unexported methods
}

type QueryVar

type QueryVar interface {
	QueryElement
	GetName() string
}

Jump to

Keyboard shortcuts

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